#25571 [Opn->Csd]: parse_url behavior
| From: | nlopess@php.net | Date: | Wed, 29 Jun 2005 10:49:17 +0000 |
| Subject: | #25571 [Opn->Csd]: parse_url behavior | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81163@lists.php.net to get a copy of this message | ||
ID: 25571
Updated by: nlopess@php.net
Reported By: andreas dot lange at haas-media dot de
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux Redhat 7.3
PHP Version: 4.3.3
New Comment:
at least HEAD works fine.
Previous Comments:
------------------------------------------------------------------------
[2003-09-17 06:57:07] andreas dot lange at haas-media dot de
Description:
------------
A simple change:
The detection of the scheme uses ':' for the splitting. Better
splitting ist '://'.
with best regards
Andreas Lange
Reproduce code:
---------------
<?php
$url = '/test::board/test.php?x=1';
$p = parse_url($url);
echo '<pre>';
print_r($p);
echo '</pre>';
?>
Expected result:
----------------
[path] => /test::board/test.php
[query] => x=1
Actual result:
--------------
[scheme] => /test
[path] => :board/test.php
[query] => x=1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25571&edit=1