ID:               49832
 User updated by:  marius dot andreiana at gmail dot com
 Reported By:      marius dot andreiana at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         URL related
 Operating System: Linux
 PHP Version:      5.2.11
 New Comment:

Indeed it's not valid.
Therefore parse_url should return false, this is the bug.

Now returns: Array ( [scheme] => http [host] => a.com:: )

Expected: return false


Previous Comments:
------------------------------------------------------------------------

[2009-10-10 18:06:50] [email protected]

Thank you for your bug report.

Your example URL, "http://a.com:::";, does not seem valid to me. Why do
you think this URL is valid?

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

[2009-10-10 15:48:29] marius dot andreiana at gmail dot com

Description:
------------
http://a.com::: 
Array ( [scheme] => http [host] => a.com:: )
expected: return false

Reproduce code:
---------------
$url_parts = parse_url("http://a.com:::";);
print_r($url_parts); 


Expected result:
----------------
See Description

Actual result:
--------------
See Description


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


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

Reply via email to