|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-11-08 09:57 UTC] frogone at fr dot firm dot lv
Description: ------------ Like this report :http://bugs.php.net/bug.php?id=37945 but with php-cgi (and fcgid). <?php echo basename("./parent/ééé"); ?> result : parent PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 05:00:02 2025 UTC |
basename() uses php_mblen(), whose result depends on the locale: Example (terminal using iso-8859-15): glopes@nebm:~/php/php-t/bin$ LANG=pt_PT.utf8 php -r 'echo basename("./parent/\xe9\xe9\xe9"), "\n";' parent glopes@nebm:~/php/php-t/bin$ LANG=pt_PT.iso885915@euro php -r 'echo basename("./parent/\xe9\xe9\xe9"), "\n";' ééé