|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34831 parse_url behavior changed from 5.0.4 to 5.0.5 breaks code
Submitted: 2005-10-11 17:26 UTC Modified: 2005-10-11 17:50 UTC
From: jason at eblasterpro dot com Assigned:
Status: Not a bug Package: URL related
PHP Version: 5.0.5 OS: Mandrake 10.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jason at eblasterpro dot com
New email:
PHP Version: OS:


 [2005-10-11 17:26 UTC] jason at eblasterpro dot com
results differ from php-5.0.4 to php-5.0.5 for parse_url with  host and scheme replaced with host and path

Reproduce code:
example of problem
url = Array[2]
--->scheme= href="http

url = Array[2]
--->host= href="http
--->path= //

Expected result:
the returned result should not change between versions the correct return should be
url = Array[2]
--->scheme= href="http

Actual result:
the incorrect result
url = Array[2]
--->host= href="http
--->path= //


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-11 17:36 UTC]
'href="' is not a correct URL, nobody told you that parse_url() will behave in the same way with invalid URLs.
No bug here.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 17:01:28 2024 UTC