Bug #69976 [Csd]: Unable to parse "all" urls with colon char.
| From: | cmb@php.net | Date: | Wed, 01 Jul 2015 21:56:43 +0000 |
| Subject: | Bug #69976 [Csd]: Unable to parse "all" urls with colon char. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194050@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69976&edit=1
ID: 69976
Updated by: cmb@php.net
Reported by: flavio dot cambraia at yahoo dot com dot br
Summary: Unable to parse "all" urls with colon char.
Status: Closed
Type: Bug
Package: URL related
Operating System: Windows
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
As the fix for this bug might be regarded as BC break (albeit a
minor one), I have committed to master (PHP 7.0.0) only.
Previous Comments:
------------------------------------------------------------------------
[2015-07-01 21:53:42] cmb@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e49922d3f8060e47f810a24ce48d4e622b493699
Log: Fix #69976: Unable to parse "all" urls with colon char
------------------------------------------------------------------------
[2015-07-01 12:17:00] flavio dot cambraia at yahoo dot com dot br
Description:
------------
The parsed url must have at least 6 chars after colon or it returns false.
Test script:
---------------
<?php
$res = parse_url("/busca/?fq=B:20001");
var_dump($res);
echo "<br>";
$res = parse_url("/busca/?fq=B:200013");
var_dump($res);
echo "<br>";
$res = parse_url("/busca/?fq=home:01234");
var_dump($res);
echo "<br>";
$res = parse_url("/busca/?fq=home:012345");
var_dump($res);
echo "<br>";
?>
Expected result:
----------------
The first and third parse return false. The second and fourth are ok.
It happens because of the colon char. It needs at least 6 chars after colon to parse correctly.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69976&edit=1