From:             nherdananto at gmail dot com
Operating system: FreeBSD 5.5
PHP version:      4.4.4
PHP Bug Type:     Filesystem function related
Bug description:  is_file() and file_exists() returning false on high load

Description:
------------
is_file() or file_exists() returning false on existing file.
the script is executed about 8x per second and checking a file in a
directory filled with 5000 to 30000 files.
for 344000 execution, it fails about 2000 times.
no change on php.ini

Reproduce code:
---------------
$tid = isset( $_GET['tid'] ) ? $_GET['tid'] : "";

$file = "/data/".$tid.".txt";
if(file_exists()) {
      echo "1";
} else {
      echo "0";
}

Expected result:
----------------
for 344000 execution, it should producing 1 for 344000 times.

Actual result:
--------------
less than 344000 times of 1 echoed.

-- 
Edit bug report at http://bugs.php.net/?id=39063&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39063&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39063&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39063&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39063&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39063&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39063&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39063&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39063&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39063&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39063&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39063&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39063&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39063&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39063&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39063&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39063&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39063&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39063&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39063&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39063&r=mysqlcfg

Reply via email to