#31705 [Opn->Csd]: parse_url: http://foo.com#bar not recognized
| From: | iliaa@php.net | Date: | Thu, 27 Jan 2005 16:38:35 +0000 |
| Subject: | #31705 [Opn->Csd]: parse_url: http://foo.com#bar not recognized | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72939@lists.php.net to get a copy of this message | ||
ID: 31705
Updated by: iliaa@php.net
Reported By: cox at idecnet dot com
-Status: Open
+Status: Closed
Bug Type: URL related
Operating System: Linux
PHP Version: 4.3.10
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-01-26 18:26:08] cox at idecnet dot com
Description:
------------
This url format is not recognized by parse_url():
http://foo.com#bar
Most browsers do recognize this format. Others like
"http://foo.com?bar" are rightly parsed.
Tomas V.V.Cox
Reproduce code:
---------------
php -r 'print_r(parse_url("http://foo.com#bar"));'
Expected result:
----------------
Array
(
[scheme] => http
[host] => foo.com
[fragment] => bar
)
Actual result:
--------------
Array
(
[scheme] => http
[host] => foo.com#bar
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31705&edit=1