note 84004 added to function.parse-url

From: Date: Mon, 23 Jun 2008 16:25:44 +0000
Subject: note 84004 added to function.parse-url
Groups: php.notes 
Request: Send a blank email to php-notes+get-140741@lists.php.net to get a copy of this message
Today I found out that parse_url does not correctly parse URLs where the host is delimited by the beginning of the query marked by "?". Example: "http://www.some_host.com?q=node/85" $url_array = parse_url("http://www.some_host.com?q=node/85"); print_r( $url_array ); ... will output: Array ( [scheme] => http [host] => www.some_host.com?q=node [path] => /85 ) ----- I don't think that the example-URL is very special, since, it is a typical URL for a post on a Drupal-blog! So I consider this a bug in parse_url. ---- Server IP: 69.147.83.197 Probable Submitter: 87.159.110.212 ---- Manual Page -- http://www.php.net/manual/en/function.parse-url.php Edit -- https://master.php.net/note/edit/84004 Del: integrated -- https://master.php.net/note/delete/84004/integrated Del: useless -- https://master.php.net/note/delete/84004/useless Del: bad code -- https://master.php.net/note/delete/84004/bad+code Del: spam -- https://master.php.net/note/delete/84004/spam Del: non-english -- https://master.php.net/note/delete/84004/non-english Del: in docs -- https://master.php.net/note/delete/84004/in+docs Del: other reasons-- https://master.php.net/note/delete/84004 Reject -- https://master.php.net/note/reject/84004 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140741) next »