php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37117 basename can't split off the exact filename
Submitted: 2006-04-18 08:21 UTC Modified: 2006-04-18 08:34 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: miaofeng at starsoftcomm dot com Assigned:
Status: Wont fix Package: Filesystem function related
PHP Version: 5.1.2 OS: linux
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:
45 - 17 = ?
Subscribe to this entry?

 
 [2006-04-18 08:21 UTC] miaofeng at starsoftcomm dot com
Description:
------------
Chinese file name can't be extracted from the whole directory string

Reproduce code:
---------------
<?
echo basename("/somewhere/&#20320;&#22909;.dat");
?>


Expected result:
----------------
&#20320;&#22909;.dat

Actual result:
--------------
.dat

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-18 08:34 UTC] tony2001@php.net
Unicode support will appear in PHP6.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC