From: zgq0301 at gmail dot com Operating system: Windows_NT PHP version: 5.2.11 PHP Bug Type: Filesystem function related Bug description: dirname bug
Description: ------------ function dirname can't return a string which the last character is chinese. Reproduce code: --------------- --- >From manual page: function.dirname#Description --- code: $file="D:\Backup\我的文档\网站根目录d\cms"; echo dirname($file); then it print D:\Backup; but when I add a english character: $file="D:\Backup\我的文档\网站根目录d\cms"; echo dirname($file); it can well done. Expected result: ---------------- code: $file="D:\Backup\我的文档\网站根目录d\cms"; echo dirname($file); then it print D:\Backup; but when I add a english character: $file="D:\Backup\我的文档\网站根目录d\cms"; echo dirname($file); it can well done. Actual result: -------------- code: $file="D:\Backup\我的文档\网站根目录d\cms"; echo dirname($file); then it print D:\Backup; but when I add a english character: $file="D:\Backup\我的文档\网站根目录d\cms"; echo dirname($file); it can well done. -- Edit bug report at http://bugs.php.net/?id=50028&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50028&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50028&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50028&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50028&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50028&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50028&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50028&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50028&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50028&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50028&r=support Expected behavior: http://bugs.php.net/fix.php?id=50028&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50028&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50028&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50028&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50028&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50028&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50028&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50028&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50028&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50028&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50028&r=mysqlcfg
