php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33260 basename() cannot work with Chinese file name
Submitted: 2005-06-07 09:36 UTC Modified: 2005-06-07 09:49 UTC
From: simonweb at 21cn dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5CVS-2005-06-07 (dev) OS: windows xp 2000 ad
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: simonweb at 21cn dot com
New email:
PHP Version: OS:

 

 [2005-06-07 09:36 UTC] simonweb at 21cn dot com
Description:
------------
basename() cannot work with Chinese file name,such as:basename("c:/php/?ļ???a.php")
it will return "a.php"
the first word of file name can't be Chinese

Reproduce code:
---------------
<?

$dir="c:/php/?ļ???a.php";
echo basename($dir);
?>

Expected result:
----------------
?ļ???a.php

Actual result:
--------------
a.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-07 09:49 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Sorry, but this is not supported yet. You'll have to wait for PHP that supports unicode.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 15:01:36 2024 UTC