|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-17 20:55 UTC] jani@php.net
[2009-05-25 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Description: ------------ When I check file sizes in a loop with filesize($filename), everything is OK until it reaches files with the "┴" (like a T, but upside down) character in its name. Then this error message appears: Warning: filesize() [function.filesize]: stat failed for /AppServ/www/kraftwerk/store47-115/+NTSZ_2008-01-27.DAT in D:\AppServ\www\dir2array.php on line 37 Please note that the filename contains "┴" but PHP is looking for "+". I know this is crazy to use this kind of characters in filenames, but they are coming from an old system that can't use letters with accents. Some two thousand files are affected. I'm not able to replace nor to modify that app. (char-to-code conversion is made by php.net/report.php - I wrote the actual characters) Reproduce code: --------------- $fsize = filesize("/AppServ/www/kraftwerk/store47-115/" . $filename); Expected result: ---------------- The size of the file in bytes. Actual result: -------------- Warning: filesize() [function.filesize]: stat failed for /AppServ/www/kraftwerk/store47-115/+NTSZ_2008-01-27.DAT in D:\AppServ\www\dir2array.php on line 37