|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-23 12:29 UTC] aharvey@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: aharvey
[2010-11-23 12:36 UTC] aharvey@php.net
-Status: Assigned
+Status: Closed
[2010-11-23 12:36 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 13 07:00:01 2026 UTC |
Description: ------------ From the docs: "On seriously malformed URLs, parse_url() may return FALSE. Otherwise an associative array is returned, whose components may be (at least one):" However, in some cases it will return NULL as well. Actually, I am having a really hard time getting it to return FALSE. I am not sure it ever does. I know it will throw a warning at times. But, it does not even seem to do that on an empty string. Test script: --------------- <?php var_dump(parse_url("1,2,3,4", PHP_URL_QUERY)); var_dump(parse_url("1,2,3,4")); ?> Expected result: ---------------- The documentation should state that the function returns NULL when the 2nd parameter is used and the requested portion of the URL is not not set. Actual result: -------------- The documentation makes no mention of the function ever returning NULL.