Bug #69550 [Opn->Fbk]: Chinese file name will be separate when follow "-"
| From: | cmb@php.net | Date: | Thu, 30 Apr 2015 11:22:25 +0000 |
| Subject: | Bug #69550 [Opn->Fbk]: Chinese file name will be separate when follow "-" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192421@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: cmb@php.net
Reported by: popoweiqi at qq dot com
Summary: Chinese file name will be separate when follow "-"
-Status: Open
+Status: Feedback
Type: Bug
Package: Filesystem function related
Operating System: windows7
PHP Version: 5.5Git-2015-04-30 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Please try the following test script:
$fileName = $_FILES['fileName']['name'];
var_dump(bin2hex($fileName));
Which result do you get?
Previous Comments:
------------------------------------------------------------------------
[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