Bug #71112 [Com]: Detect some valid url as invalid in parse_url

From: Date: Fri, 15 Jan 2016 07:26:26 +0000
Subject: Bug #71112 [Com]: Detect some valid url as invalid in parse_url
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198667@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71112&edit=1 ID: 71112 Comment by: simonsimcity at gmail dot com Reported by: dudytz at gmail dot com Summary: Detect some valid url as invalid in parse_url Status: Open Type: Bug Package: *URL Functions Operating System: Linux PHP Version: 5.6.16 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2015-12-13 20:42:20] 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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71112&edit=1

« previous php.bugs (#198667) next »