php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22280 Stat failed for known file using filesize() and filemtime()
Submitted: 2003-02-18 13:24 UTC Modified: 2003-02-25 02:07 UTC
Votes:20
Avg. Score:4.4 ± 0.8
Reproduced:18 of 18 (100.0%)
Same Version:6 (33.3%)
Same OS:6 (33.3%)
From: stdbmt12 at shsu dot edu Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.1 OS: linux red hat 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stdbmt12 at shsu dot edu
New email:
PHP Version: OS:

 

 [2003-02-18 13:24 UTC] 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().

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-18 22:52 UTC] sniper@php.net
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..

 [2003-02-25 02:07 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 10:01:27 2024 UTC