PHP :: Bug #21410 :: file_exists(), filetype() do not return FALSE for bad filenames: "" or NULL
| Bug #21410 | file_exists(), filetype() do not return FALSE for bad filenames: "" or NULL | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2003-01-04 13:29 UTC | Modified: | 2003-02-27 10:42 UTC |
|
||||||||||
| From: | ari at alienhosting dot com | Assigned: | ||||||||||||
| Status: | Closed | Package: | Filesystem function related | |||||||||||
| PHP Version: | 4.3.2-dev | OS: | win32 only | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2003-01-04 13:29 UTC] ari at alienhosting dot com
In the filetype() doc, it says the function returns FALSE on error, but says nothing about a warning being output if it fails. In 4.3.0, A warning is printed: Warning: filetype() [function.filetype]: Lstat failed for (null) (errno=2 - No such file or directory) in /home/alienhosting/public_html/webmail/plugins/administrator/options.php on line 431
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-01-04 14:37 UTC] nicos@php.net
[2003-01-04 14:43 UTC] nicos@php.net
[2003-01-04 15:12 UTC] philip@php.net
[2003-01-04 15:30 UTC] philip@php.net
[2003-02-19 23:59 UTC] sniper@php.net
[2003-02-20 00:09 UTC] sniper@php.net
[2003-02-25 02:56 UTC] sniper@php.net
[2003-02-25 02:59 UTC] sniper@php.net
[2003-02-27 10:42 UTC] iliaa@php.net