Edit report at https://bugs.php.net/bug.php?id=60549&edit=1

 ID:                 60549
 Updated by:         m...@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

Reply via email to