Bug #14111: file_exists() prints a warning when it shouldn't
| From: | cech at debian dot org | Date: | Mon, 19 Nov 2001 10:35:57 +0000 |
| Subject: | Bug #14111: file_exists() prints a warning when it shouldn't | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70879@lists.php.net to get a copy of this message | ||
From: cech@debian.org
Operating system: Debian
PHP version: 4.1.0RC1
PHP Bug Type: *Directory/Filesystem functions
Bug description: file_exists() prints a warning when it shouldn't
Running this code
<?file_exists("/etc/passwd/bla");?>
(where /etc/passwd exists for those non-UNIX people)
gives this warning
Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in
....
This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported
as #114409 in Debian with a patch
--
Edit bug report at: http://bugs.php.net/?id=14111&edit=1