Bug #60549 [Opn->Bgs]: parse_url() assigns wrong key if no scheme is given
| From: | mike@php.net | Date: | Wed, 04 Jan 2012 22:49:21 +0000 |
| Subject: | Bug #60549 [Opn->Bgs]: parse_url() assigns wrong key if no scheme is given | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166223@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60549&edit=1
ID: 60549
Updated by: mike@php.net
Reported by: thompson749v2 at yahoo dot com
Summary: parse_url() assigns wrong key if no scheme is given
-Status: Open
+Status: Bogus
Type: Bug
Package: Unknown/Other Function
Operating System: Debian 6.0 Squeeze
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2011-12-17 00:00:37] thompson749v2 at yahoo dot com
Description:
------------
If no scheme is provided on the value passed to parse_url(), it incorrectly
assigns "domain.com" to a key of "path". Should be "host".
Test script:
---------------
$parsed_url = parse_url('domain.com');
print_r($parsed_url);
// Current result is:
//Array ( [path] => domain.com )
// Should be:
//Array ( [host] => domain.com )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60549&edit=1