Le Tue, 1 Dec 2020 12:06:22 -0800,
Stanislav Malyshev <[email protected]> a écrit :
> But it's not incorrect. if is_file("abc\0") returns false, it's correct
> - "abc\0" is not a correct filename, so I expect it to return false. It
> does exactly what I need, so it's correct.
Hear hear. I think this is the best summary in this discussion.
is_file and is_dir should just return false on values which are not files and
dirs.
Can we please fix this for future PHP versions?
Does it need an RFC?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php