Edit report at http://bugs.php.net/bug.php?id=50197&edit=1

 ID:                 50197
 Updated by:         [email protected]
 Reported by:        jandidrik dot fagerlid at hotmail dot com
 Summary:            long filenames
-Status:             Open
+Status:             Assigned
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            Filesystem function related
 Operating System:   winxp 32bit
 PHP Version:        5.3.0
-Assigned To:        
+Assigned To:        pajoye
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2009-11-16 22:40:22] jandidrik dot fagerlid at hotmail dot com

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 this bug report at http://bugs.php.net/bug.php?id=50197&edit=1

Reply via email to