|  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
 [2005-06-07 09:36 UTC] simonweb at 21cn dot com
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:

echo basename($dir);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


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

Sorry, but this is not supported yet. You'll have to wait for PHP that supports unicode.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jun 12 15:01:23 2021 UTC