Doc #53262 [Opn->Csd]: basename() cannot handle argument with special characters like french "ééé"

From: Date: Wed, 17 Nov 2010 08:48:41 +0000
Subject: Doc #53262 [Opn->Csd]: basename() cannot handle argument with special characters like french "ééé"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5535@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53262&edit=1 ID: 53262 Updated by: Kalle@php.net Reported by: frogone at fr dot firm dot lv Summary: basename() cannot handle argument with special characters like french "ééé" -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: debian PHP Version: 5.2.14 -Assigned To: +Assigned To: Kalle Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-11-17 09:48:37] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=305449 Log: This also applies to dirname() -- bug #53262 ------------------------------------------------------------------------ [2010-11-17 09:47:16] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=305448 Log: Fixed bug #53262 (basename() cannot handle argument with special characters like french &quot;ééé&quot;) ------------------------------------------------------------------------ [2010-11-16 16:41:44] cataphract@php.net 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";' ééé ------------------------------------------------------------------------ [2010-11-08 09:57:50] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53262&edit=1

« previous php.doc.bugs (#5535) next »