ID: 15932
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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