php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69550 Chinese file name will be separate when follow "-"
Submitted: 2015-04-30 03:36 UTC Modified: 2015-05-10 04:22 UTC
From: popoweiqi at qq dot com Assigned: cmb (profile)
Status: No Feedback Package: Filesystem function related
PHP Version: 5.5Git-2015-04-30 (Git) OS: windows7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 - 17 = ?
Subscribe to this entry?

 
 [2015-04-30 03:36 UTC] 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";


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-30 11:22 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-04-30 11:22 UTC] cmb@php.net
Please try the following test script:

    $fileName = $_FILES['fileName']['name'];
    var_dump(bin2hex($fileName));

Which result do you get?
 [2015-05-10 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 22:01:27 2019 UTC