PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_URL » Bug #6338

wrong array querystring handling

Details

Submitted2005-12-23 12:46 UTC
Fromdobes at lnx dot cz
Assigneddavidc
StatusClosed
PackageNet_URL
PHP Version5.0.5-5.2.0
OSLinux
Roadmaps(Not assigned)

Comments

[2005-12-23 12:46 UTC] dobes at lnx dot cz

Description:
------------
In querystring with arrays is wrong parsing.

Test script:
---------------
$url = new Net_URL('http://localhost/run.php?a[0]=foo0&a[1]=foo1&b=foo2');
print_r($url->querystring);

Expected result:
----------------
(
[a] => array(
[0] => foo0
[1] => foo1
)
[b] => foo2
)

Actual result:
--------------
(
[a[0]] => foo0
[a[1]] => foo1
[b] => foo2
)