#21226 [Ver]: function parse_url() fails
| From: | edink@php.net | Date: | Sat, 28 Dec 2002 01:00:54 +0000 |
| Subject: | #21226 [Ver]: function parse_url() fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28521@lists.php.net to get a copy of this message | ||
ID: 21226
Updated by: edink@php.net
Reported By: dev@lechat.org
Status: Verified
Bug Type: *URL Functions
Operating System: w2000
PHP Version: 4.3.0
Assigned To: iliaa
New Comment:
Some more info: port has to be numeric and less than 5 digits long.
The bug part seems to be that parse_url() doesn't recognize the end of
port part if '/' is missing. So
$url="http://user:password@host.dom.gtld:80/?foo";
works as expected.
Previous Comments:
------------------------------------------------------------------------
[2002-12-27 18:49:37] edink@php.net
Verified on Windows and Linux ZTS builds.
Assigning to Ilia.
------------------------------------------------------------------------
[2002-12-27 18:47:38] dev@lechat.org
Does not working on 4.3.0RC4 AND 4.3.0 final too
------------------------------------------------------------------------
[2002-12-27 18:35:38] dev@lechat.org
Script below :
$url="http://user:password@host.dom.gtld:portnumber?foo";
$p_url=parse_url($url);
print_r($p_url);
Fails with following output :
Warning: parse_url(http://user:password@host.dom.gtld:portnumber?foo)
[function.parse-url]: Unable to parse url in C:\script\t.php on line 2
This function was working in php 4.2
It does not working with 4.3.0RC4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21226&edit=1