#22280 [Opn->Fbk]: Stat failed for known file using filesize() and filemtime()

From: Date: Wed, 19 Feb 2003 04:52:54 +0000
Subject: #22280 [Opn->Fbk]: Stat failed for known file using filesize() and filemtime()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33495@lists.php.net to get a copy of this message
ID: 22280 Updated by: sniper@php.net Reported By: stdbmt12 at shsu dot edu -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: linux red hat 7.3 PHP Version: 4.3.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip I can not reproduce this with PHP 4.3.2-dev.. Previous Comments: ------------------------------------------------------------------------ [2003-02-18 13:24:04] stdbmt12 at shsu dot edu When working with files of the form: @@@@@@@80@@XXX_XXX@FILENAME.LIS filesize() and filemtime() return an error of: Warning: filesize() Stat failed for FILENAME (errno=2 - No such file or directory) in /path/to/program.name.php on line 100 The same error occurs with PHP 4.2.X. Using PHP 4.3.1 with Apache 2.X on a windows system does not reproduce the error. If the filename is changed to: @P@@@@@@80@@XXX_XXX@FILENAME.LIS the error does not occur. The list of files in the directory was obtained using the PHP readdir() function, so i know PHP is finding the file at sometime, just not for filemtime() or filesize(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22280&edit=1

« previous php.bugs (#33495) next »