#22098 [NEW]: problems with filemtime/filemsize

From: Date: Thu, 06 Feb 2003 23:05:17 +0000
Subject: #22098 [NEW]: problems with filemtime/filemsize
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32332@lists.php.net to get a copy of this message
From: stdbmt12@shsu.edu Operating system: Linux/RedHat 7.3 PHP version: 4.2.3 PHP Bug Type: Filesystem function related Bug description: problems with filemtime/filemsize 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. -- Edit bug report at http://bugs.php.net/?id=22098&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22098&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22098&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22098&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22098&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22098&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22098&r=support Expected behavior: http://bugs.php.net/fix.php?id=22098&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22098&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22098&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22098&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22098&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22098&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22098&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22098&r=gnused

« previous php.bugs (#32332) next »