#22280 [NEW]: Stat failed for known file using filesize() and filemtime()
| From: | stdbmt12 at shsu dot edu | Date: | Tue, 18 Feb 2003 19:24:04 +0000 |
| Subject: | #22280 [NEW]: Stat failed for known file using filesize() and filemtime() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-33459@lists.php.net to get a copy of this message | ||
From: stdbmt12 at shsu dot edu
Operating system: linux red hat 7.3
PHP version: 4.3.1
PHP Bug Type: Filesystem function related
Bug description: Stat failed for known file using filesize() and filemtime()
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 bug report at http://bugs.php.net/?id=22280&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22280&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22280&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22280&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22280&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22280&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22280&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22280&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22280&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22280&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22280&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22280&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22280&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22280&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22280&r=gnused