note 84004 deleted from function.parse-url by felipe
| From: | felipe@php.net | Date: | Tue, 24 Jun 2008 11:32:35 +0000 |
| Subject: | note 84004 deleted from function.parse-url by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140763@lists.php.net to get a copy of this message | ||
Note Submitter: akniep at rayo dot info
----
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.