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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 23:01:29 2024 UTC