ID: 35721 Updated by: [EMAIL PROTECTED] Reported By: omidmr at gmail dot com -Status: Closed +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Windows XP PHP Version: 5.1.1
Previous Comments: ------------------------------------------------------------------------ [2005-12-17 19:54:02] omidmr at gmail dot com sorry, i found it is bogus! it is windows/firefox bug! ------------------------------------------------------------------------ [2005-12-17 16:44:34] omidmr at gmail dot com Thanks Tony, but PHP supported unicode in uploading file functions. as i told, PHP 5.0.5 works fine. the bug directly doesn't related to filesystem functions, because i don't write file on the disk. Additional comments: 1- i tested it with 5.1.2-dev (current last release!) too. and it has the bug too. 2- i tested it with 6.0.0-dev (current last release!) too. and it has the bug too. 3- and again, this code, works fine [at least] with PHP 5.0.5 ------------------------------------------------------------------------ [2005-12-17 16:24:39] [EMAIL PROTECTED] You have to wait for PHP6, Unicode support will be added only in this version. ------------------------------------------------------------------------ [2005-12-17 16:07:50] omidmr at gmail dot com Description: ------------ When i upload a file with unicode filename (in my case, it is in Persian) PHP convert each character to an underscore sign (_). for example when i upload a file, named "عÙÛ.php", it will convert to "___.php" the written program works fine with PHP 5.0.5. Regards, omid Reproduce code: --------------- the very very simple code that i tested is: <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file"><br> <input type="submit" name="submit" value="submit"> </form> <?php echo '<pre>'; print_r($_FILES['file']); echo '</pre>'; ?> Expected result: ---------------- Array ( [name] => Ø³ÙØ§Ù .php [type] => application/octet-stream [tmp_name] => D:\php\tmp\php4D.tmp [error] => 0 [size] => 0 ) Actual result: -------------- Array ( [name] => ____.php [type] => application/octet-stream [tmp_name] => D:\php\tmp\php4D.tmp [error] => 0 [size] => 0 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35721&edit=1