|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-05-07 19:13 UTC] mail+php at requinix dot net
[2013-05-18 16:00 UTC] cmbecker69 at gmx dot de
[2013-06-19 06:58 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2013-06-19 06:58 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ Array returned by function pathinfo() contains wrong values when extra "." is introduced in the parameter, even though "." is a valid character of a query string. Test script: --------------- <php? $test_url = "/test.php?q=".urlencode("hello this is a test 1.0"); echo "test_url:".$test_url.PHP_EOL; var_dump(pathinfo($test_url)); ?> Expected result: ---------------- test_url:/test.php?q=hello+this+is+a+test+1.0 array(4) { ["dirname"]=> string(1) "\" ["basename"]=> string(35) "test.php?q=hello+this+is+a+test+1.0" ["extension"]=> string(26) "q=hello+this+is+a+test+1.0" ["filename"]=> string(4) "test" } Actual result: -------------- test_url:/test.php?q=hello+this+is+a+test+1.0 array(4) { ["dirname"]=> string(1) "\" ["basename"]=> string(35) "test.php?q=hello+this+is+a+test+1.0" ["extension"]=> string(1) "0" ["filename"]=> string(33) "test.php?q=hello+this+is+a+test+1" }