Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend isFile with maximum path length check #224

Merged
merged 2 commits into from
Jul 3, 2017

Conversation

wouterbulten
Copy link
Contributor

Added a simple check to isFile to check whether the length of the string exceeds the maximum (PHP_MAXPATHLEN). If so, $filename cannot be a file and further checking with is_file can be skipped (which generates a warning for long filenames).

Fixes #116

@wouterbulten
Copy link
Contributor Author

Any comment on this fix? Please let me know if anything is missing.

@akerouanton akerouanton merged commit fdab3a5 into KnpLabs:master Jul 3, 2017
@akerouanton
Copy link
Contributor

Thank you :)

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.

2 participants