From: hellsing at index dot hu Operating system: Vista x64 PHP version: 5.2.6 PHP Bug Type: Filesystem function related Bug description: filesize() fails on files with name containing "┴" sign
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 bug report at http://bugs.php.net/?id=46661&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46661&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46661&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46661&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46661&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46661&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46661&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46661&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46661&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46661&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46661&r=support Expected behavior: http://bugs.php.net/fix.php?id=46661&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46661&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46661&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46661&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46661&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46661&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46661&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46661&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46661&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46661&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46661&r=mysqlcfg