From: jalal at spread-it dot org Operating system: Fedora Core 4 PHP version: 4.4.2 PHP Bug Type: URL related Bug description: parse_url() cannot parse urls with "http://" in the url query or path
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 bug report at http://bugs.php.net/?id=38143&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38143&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38143&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38143&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38143&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38143&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38143&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38143&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38143&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38143&r=support Expected behavior: http://bugs.php.net/fix.php?id=38143&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38143&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38143&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38143&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38143&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38143&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38143&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38143&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38143&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38143&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38143&r=mysqlcfg