PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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
)