#33260 [Opn->Bgs]: basename() cannot work with Chinese file name
| From: | derick@php.net | Date: | Tue, 07 Jun 2005 07:49:01 +0000 |
| Subject: | #33260 [Opn->Bgs]: basename() cannot work with Chinese file name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79988@lists.php.net to get a copy of this message | ||
ID: 33260
Updated by: derick@php.net
Reported By: simonweb at 21cn dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: windows xp 2000 ad
PHP Version: 5CVS-2005-06-07 (dev)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-06-07 09:36:14] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33260&edit=1