ID: 46661 User updated by: hellsing at index dot hu Reported By: hellsing at index dot hu Status: Open Bug Type: Filesystem function related -Operating System: win32 only +Operating System: Vista x64 PHP Version: 5.2.6 New Comment:
Opsys is Vista x64. Previous Comments: ------------------------------------------------------------------------ [2008-11-25 01:10:14] hellsing at index dot hu 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46661&edit=1