We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Actually there's no validation before the parameter is passed to fopen(). This could end in a warning.
We could fix this by something like:
if (!(\file_exists($filename) || \is_readable($filename))) { throw new \InvalidArgumentException("File does not exists or is not readable."); }
But this would break usage with stream-wrappers which do not implement url_stat() completely (without mode(2)).
mode
So implementing this check would be a BC break.
Any needs to "fix" this or is the current E_WARNING enough? Ideas?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Actually there's no validation before the parameter is passed to fopen(). This could end in a warning.
We could fix this by something like:
But this would break usage with stream-wrappers which do not implement url_stat() completely (without
mode
(2)).So implementing this check would be a BC break.
Any needs to "fix" this or is the current E_WARNING enough? Ideas?
The text was updated successfully, but these errors were encountered: