php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71112 Detect some valid url as invalid in parse_url
Submitted: 2015-12-13 20:42 UTC Modified: -
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: dudytz at gmail dot com Assigned:
Status: Open Package: *URL Functions
PHP Version: 5.6.16 OS: Linux
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dudytz at gmail dot com
New email:
PHP Version: OS:

 

 [2015-12-13 20:42 UTC] dudytz at gmail dot com
Description:
------------
Seems that the bug #66813 is still present on PHP 5.6.16:

var_dump(parse_url("/path?value=a:2a"));

array(2) {
  ["path"]=>
  string(5) "/path"
  ["query"]=>
  string(10) "value=a:2a"
}

But when there is a column followed by one or more number, the function returns false.

var_dump(parse_url("/path?value=a:2"));

==> bool(false)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-15 07:26 UTC] simonsimcity at gmail dot com
Of all combinations I tested, only PHP 7.0 returned the awaited result.

Tested versions and OSes:
* on Ubuntu Linux:
** 5.3.10-1ubuntu3.21
** 5.5.9-1ubuntu4.14
* on OS X: 
** 5.4.45
** 5.5.31
** 5.6.17
** 7.0.2

Seems this bug has been fixed in PHP >=7.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC