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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Dec 21 13:01:31 2024 UTC