Skip to content

Conversation

@remicollet
Copy link
Collaborator

While full path is the recommended way, this could be used in case include_path should be used (PHPUnit and its dependencies)

Copy link
Member

@siwinski siwinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@remicollet Please review the comment regarding path matching in src/functions.php.

/* Windows */
if (ctype_alpha($path[0]) && $path[1]==':') {
return true; // Drive
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be?:

if (($path[0] == '/' && $path[1] == '/') || ($path[0] == '\\' && $path[1] == '\\')) {

Or are paths like /\ and \/ valid?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, fixed (+ rebased)

@siwinski siwinski merged commit b566160 into master Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants