From: jandidrik dot fagerlid at hotmail dot com Operating system: winxp 32bit PHP version: 5.3.0 PHP Bug Type: Feature/Change Request Bug description: long filenames
Description: ------------ Firstly, thank you for your hard work, it is appreciated. It seems filemtime will not accept file paths longer than 256 chars. I have some long dir names consisting of totally 165 chars, and a file inside it consisting of 94 chars. The script doesnt exit, but i get a warning and a NULL result. Warning: filemtime() [function.filemtime]: stat failed for [file.php] in [dir] on line # Reproduce code: --------------- #$path = string 165 chars #$file = string of 94 chars filemtime($path."/".$file); Expected result: ---------------- timestamp for file Actual result: -------------- NULL -- Edit bug report at http://bugs.php.net/?id=50197&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50197&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50197&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50197&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50197&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50197&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50197&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50197&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50197&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50197&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50197&r=support Expected behavior: http://bugs.php.net/fix.php?id=50197&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50197&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50197&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50197&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50197&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50197&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50197&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50197&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50197&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50197&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50197&r=mysqlcfg