Bug #69976 [Csd]: Unable to parse "all" urls with colon char.

From: Date: Wed, 01 Jul 2015 23:11:16 +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-194051@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: yohgaki@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: @cmb Could you add minor BC issue in UPGRADING? Previous Comments: ------------------------------------------------------------------------ [2015-07-01 21:56:43] cmb@php.net 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. ------------------------------------------------------------------------ [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 &quot;all&quot; 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

« previous php.bugs (#194051) next »