ID:               15932
 Comment by:       jesse at clatsopwebdesign dot com
 Reported By:      eweik at ls-dmd dot com
 Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Linux
 PHP Version:      4.1.2
 New Comment:

This bug still exists in php 4.3.1 on my FreeBSD server


Previous Comments:
------------------------------------------------------------------------

[2002-03-08 06:17:24] [EMAIL PROTECTED]

This bug has already been fixed in CVS.

------------------------------------------------------------------------

[2002-03-07 07:58:16] eweik at ls-dmd dot 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

Reply via email to