|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-09 18:05 UTC] scottmac@php.net
-Status: Open
+Status: Bogus
[2010-09-09 18:05 UTC] scottmac@php.net
[2010-09-09 18:08 UTC] leif at flattr dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 09:00:01 2025 UTC |
Description: ------------ parse_url will falsely use the hostname as path if url doesn't include the scheme part. Test script: --------------- php > echo var_dump(parse_url('hejhopp.com/')); Expected result: ---------------- array(1) { ["host"]=> string(11) "hejhopp.com" ["path"]=> string(1) "/" } Actual result: -------------- array(1) { ["path"]=> string(12) "hejhopp.com/" }