|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-01-27 00:16 UTC] requinix@php.net
-Status: Open
+Status: Verified
[2015-01-27 00:16 UTC] requinix@php.net
[2015-01-27 00:43 UTC] me at evertpot dot com
[2015-03-04 08:16 UTC] demon@php.net
-Assigned To:
+Assigned To: demon
[2015-03-06 13:04 UTC] datibbaw@php.net
[2015-03-06 13:04 UTC] datibbaw@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ parse_url will fail for urls that don't have a scheme, but do have a port Test script: --------------- <?php print_r(parse_url('//example.org:81/hi?a=b#c=d')); print_r(parse_url('//example.org/hi?a=b#c=d')); Expected result: ---------------- Array ( [host] => example.org [port] => 81 [path] => /hi [query] => a=b [fragment] => c=d ) Array ( [host] => example.org [path] => /hi [query] => a=b [fragment] => c=d ) Actual result: -------------- Array ( [host] => example.org [path] => /hi [query] => a=b [fragment] => c=d )