ID: 50028 Updated by: [email protected] Reported By: zgq0301 at gmail dot com Status: Open Bug Type: Filesystem function related Operating System: * PHP Version: 5.2.11 New Comment:
Thank you for your bug report. You have html entities in your filename. Html entities are not automatically decoded when used in filenames. Previous Comments: ------------------------------------------------------------------------ [2009-10-29 00:49:31] zgq0301 at gmail dot com 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 this bug report at http://bugs.php.net/?id=50028&edit=1
