|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22098 problems with filemtime/filemsize
Submitted: 2003-02-06 17:05 UTC Modified: 2003-02-06 17:35 UTC
From: stdbmt12 at shsu dot edu Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.2.3 OS: Linux/RedHat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: stdbmt12 at shsu dot edu
New email:
PHP Version: OS:


 [2003-02-06 17:05 UTC] stdbmt12 at shsu dot edu
having problems with the way PHP handles a long filename containing "@'s" e.g. @P@@@@@@80@@XXX_XXX@FILENAME.TXT

the '@' in this case is a delimiter, only the four fields listed above may appear in the filename but the first ('P' in this case) is optional.  if the first field is empty the system returns:

"stat failed for @@@@@@@80@@XXX_XXX@FILENAME.TXT (errno=2 - No such file or directory)"

if the 'P' is there, there is no problem.  i tried placing the path/filename in quotes, escaping all the "@'s" with "\@'s".

PHP just will not handle the filename if the 'P' is missing, can't use file_exists(), filemtime(), filesize(), fopen(), i stopped testing when none of these worked.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-06 17:35 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP 4.3.0 was released over a month ago..

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 14:01:24 2020 UTC