Bug #69550 [Fbk->NoF]: Chinese file name will be separate when follow "-"

From: Date: Sun, 10 May 2015 04:22:17 +0000
Subject: Bug #69550 [Fbk->NoF]: Chinese file name will be separate when follow "-"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192610@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69550&edit=1 ID: 69550 Updated by: php-bugs@lists.php.net Reported by: popoweiqi at qq dot com Summary: Chinese file name will be separate when follow "-" -Status: Feedback +Status: No Feedback Type: Bug Package: Filesystem function related Operating System: windows7 PHP Version: 5.5Git-2015-04-30 (Git) Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2015-04-30 11:22:25] cmb@php.net Please try the following test script: $fileName = $_FILES['fileName']['name']; var_dump(bin2hex($fileName)); Which result do you get? ------------------------------------------------------------------------ [2015-04-30 03:36:40] popoweiqi at qq dot com Description: ------------ --- From manual page: http://www.php.net/function.pathinfo --- if the filename is "中文-English.html",test $fileName will be -english.html It is amazing Test script: --------------- $fileName = $_FILES['fileName']['name']; print_r(pathinfo($fileName)); Expected result: ---------------- $fileName="中文-English.html"; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69550&edit=1

« previous php.bugs (#192610) next »