Bug #15932 Updated: file_exists generates a verbose warning in addition to return code.
| From: | sander@php.net | Date: | Fri, 08 Mar 2002 11:17:24 +0000 |
| Subject: | Bug #15932 Updated: file_exists generates a verbose warning in addition to return code. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2007@lists.php.net to get a copy of this message | ||
ID: 15932
Updated by: sander@php.net
Reported By: eweik@ls-dmd.com
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
This bug has already been fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2002-03-07 07:58:16] eweik@ls-dmd.com
Upon upgrading to PHP 4.1.2, all calls which use the file_exists()
function to verify files within a non-existent sub-directory, are
generating a stat warning (which was not the case in 4.0.6).
Example code:
if (file_exists($dir.'/filename.ext')) {
FOO;
}
If $dir doesn't exist, the following warning is generated:
Warning: stat failed for dir/filename.exe (errno=20 - Not a directory)
in script.php on line n.
This is easily silenced by calling @file_exists instead, but it doesn't
seem like the desired behavior.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15932&edit=1