Re: Re: PHP 8 is_file/is_dir input handling
| From: | Côme Chilliet | Date: | Thu, 03 Dec 2020 08:27:36 +0000 |
| Subject: | Re: Re: PHP 8 is_file/is_dir input handling | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112390@lists.php.net to get a copy of this message | ||
Le Tue, 1 Dec 2020 12:06:22 -0800,
Stanislav Malyshev <smalyshev@gmail.com> 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?