|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-16 18:14 UTC] cataphract@php.net
-Type: Bug
+Type: Documentation Problem
[2010-12-16 18:14 UTC] cataphract@php.net
[2010-12-20 03:04 UTC] kalle@php.net
[2010-12-20 03:04 UTC] kalle@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: kalle
[2010-12-20 03:04 UTC] kalle@php.net
[2020-02-07 06:08 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 00:00:01 2025 UTC |
Description: ------------ NOTE: phpinfo() lists the PHP version as 5.3.3-6 when using pathinfo() on a path, say, '/tmp/ë.txt', it will not give the correct filename and basename (but will give the correct path). Test script: --------------- // will function correctly print_r(pathinfo('/var/tmp/aëä.txt')); // will leave out the first ë print_r(pathinfo('/var/tmp/ëaä.txt')); //will leave out ëä print_r(pathinfo('/var/tmp/ëäa.txt')); Expected result: ---------------- Array ( [dirname] => /var/tmp [basename] => aëä.txt [extension] => txt [filename] => aëä ) Array ( [dirname] => /var/tmp [basename] => ëaä.txt [extension] => txt [filename] => ëaä ) Array ( [dirname] => /var/tmp [basename] => ëäa.txt [extension] => txt [filename] => ëäa ) Actual result: -------------- Array ( [dirname] => /var/tmp [basename] => aëä.txt [extension] => txt [filename] => aëä ) Array ( [dirname] => /var/tmp [basename] => aä.txt [extension] => txt [filename] => aä ) Array ( [dirname] => /var/tmp [basename] => a.txt [extension] => txt [filename] => a )