|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-02-18 13:24 UTC] stdbmt12 at shsu dot edu
When working with files of the form:


filesize() and filemtime() return an error of:

Warning: filesize() Stat failed for FILENAME (errno=2 - No such file or directory) in /path/to/ 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:


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().


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-18 22:52 UTC]
Please try using this CVS snapshot:
For Windows:

I can not reproduce this with PHP 4.3.2-dev..

 [2003-02-25 02:07 UTC]
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-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC