ID:               38143
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jalal at spread-it dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         URL related
 Operating System: Fedora Core 4
 PHP Version:      4.4.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip




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

[2006-07-19 14:59:44] jalal at spread-it dot org

Description:
------------
I noticed that parse_url cannot parse urls with "http://"; in the query
or in the path
For example :
http://www.google.fr/url?sa=t&oi=promos&cad=hppphou%3Afr_all&ct=pro&cd=1&url=http%3A%2F%2Fwww.google.fr%2Furl%3Fsa%3Dp%26pref%3Dig%26pval%3D3%26q%3Dhttp%3A%2F%2Fwww.google.fr%2Fig%253Fhl%253Dfr%2526tab%253Diw%2526q%253D&ei=Aka-RJ6_L7K8mgGezfGiCQ
http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search

Reproduce code:
---------------
$url_info =
parse_url("http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search";);

Expected result:
----------------
$url_info['scheme'] => "http"
$url_info['host'] => "www.yahoo.com"
...

Actual result:
--------------
Warning:
parse_url(http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search):
Unable to parse url in /var/www/html/test/index.php on line 3


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


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

Reply via email to