From:             blue at anonix dot net
Operating system: OpenBSD
PHP version:      4.3.4
PHP Bug Type:     URL related
Bug description:  parse_url doesn't handle embedded IPv6 addresses

Description:
------------
parse_url doesn't handle embedded IPv6 addresses (RFC 2732)

Reproduce code:
---------------
print_r(parse_url('http://[::1]/'));

Expected result:
----------------
Array
(
    [scheme] => http
    [host] => [::1]
    [path] => /
)


Actual result:
--------------
Array
(
    [scheme] => http
    [host] => [
    [path] => /
)


With a full IPv6 address like 1234:1234:1234:1234:1324:1234:1234 it
doesn't even get that far: PHP Warning: 
parse_url(http://[1234:1234:1234:1234:1324:1234:1234:1234]/): Unable to
parse url in Command line code on line 1


-- 
Edit bug report at http://bugs.php.net/?id=28187&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28187&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28187&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28187&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28187&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28187&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28187&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28187&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28187&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28187&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28187&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28187&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28187&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28187&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28187&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28187&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28187&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28187&r=float

Reply via email to