#34829 [NEW]: file_exists() doesn't works for some files

From: Date: Tue, 11 Oct 2005 14:09:32 +0000
Subject: #34829 [NEW]: file_exists() doesn't works for some files
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86405@lists.php.net to get a copy of this message
From: kylnas at tiscali dot it Operating system: Linux PHP version: 4.4.0 PHP Bug Type: Filesystem function related Bug description: file_exists() doesn't works for some files Description: ------------ PHP 4.3.11 file_exists() doesn't works for some file (created by gd libray), instead if i create manually a file in the SAME directory the function works. Reproduce code: --------------- $file = 'images/products/thumbnails/11940-77_jpg_thumb_80x68.jpg'; if (file_exists($file)) echo 'yes'; else echo 'no'; Expected result: ---------------- YES. The file does exist. Actual result: -------------- NO. If I create a file in the same directory (like "tmp.gif") and I use the same function i get a "Yes" result. -- Edit bug report at http://bugs.php.net/?id=34829&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34829&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34829&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34829&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34829&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34829&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34829&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34829&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34829&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34829&r=support Expected behavior: http://bugs.php.net/fix.php?id=34829&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34829&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34829&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34829&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34829&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34829&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34829&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34829&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34829&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34829&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34829&r=mysqlcfg

« previous php.bugs (#86405) next »