Bug #64604 [Csd->ReO]: parse_url is inconsistent with specified port

From: Date: Fri, 25 Apr 2014 00:40:52 +0000
Subject: Bug #64604 [Csd->ReO]: parse_url is inconsistent with specified port
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185423@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64604&edit=1

 ID:                 64604
 Updated by:         stas@php.net
 Reported by:        franssen dot roland at gmail dot com
 Summary:            parse_url is inconsistent with specified port
-Status:             Closed
+Status:             Re-Opened
 Type:               Bug
 Package:            URL related
 Operating System:   Linux
 PHP Version:        5.4.13
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Looks like this fix breaks this code:

var_dump(parse_url("/v10/Users?fields=name,date_modified,id&filter=[{\"id\":\"a95665f7-68c5-a530-6950-5359ac6d3e7e\"}]"));

before the change, it worked as expected, after the fix, it returns false.


Previous Comments:
------------------------------------------------------------------------
[2014-04-15 13:05:43] ab@php.net

Automatic comment on behalf of ingo.walz@googlemail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b05c088a3abf8e4c6fb6e40418423a9e2dd3d929
Log: Fixed bug #64604

------------------------------------------------------------------------
[2014-04-15 12:04:40] ab@php.net

Automatic comment on behalf of ingo.walz@googlemail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b05c088a3abf8e4c6fb6e40418423a9e2dd3d929
Log: Fixed bug #64604

------------------------------------------------------------------------
[2014-04-14 01:42:26] stas@php.net

Automatic comment on behalf of ingo.walz@googlemail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b05c088a3abf8e4c6fb6e40418423a9e2dd3d929
Log: Fixed bug #64604

------------------------------------------------------------------------
[2013-11-19 22:52:56] yohgaki@php.net

It seems OK to merge 5.4.
Any comments?

------------------------------------------------------------------------
[2013-07-26 10:59:25] info at solidsystem dot it

There's also this problem, verified on the following PHP versions:
PHP Version 5.3.3-7+squeeze15
PHP Version 5.4.4-14+deb7u2

Bug: The port is wrongly parsed when the host is omitted.


url: index.php?myVar=Size:10Array
(
    [host] => index.php
    [port] => 10
    [query] => myVar=Size:10
)

url: http://myhost.com/index.php?myVar=Size:10Array
(
    [scheme] => http
    [host] => myhost.com
    [path] => /index.php
    [query] => myVar=Size:10
)

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=64604


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64604&edit=1


Thread (8 messages)

« previous php.bugs (#185423) next »