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 #3942

addRawQueryString shouldn't delete old values

Details

Submitted2005-03-24 11:58 UTC
Fromwf at eteleon dot de
StatusBogus
PackageNet_URL
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[2005-03-24 11:58 UTC] wf at eteleon dot de

Description:
------------
When setting a querystring with addRawQueryString(), the
old values shouldn't be deleted. The parts of the new
query string should just be added to the existing
values.

Reproduce code:
---------------
$url = new Net_URL("http://www.example.com/");

$url->addQueryString( "test", 1 );
$url->addRawQueryString( "test2=2" );

echo $url->getURL();

Expected result:
----------------
http://www.example.com/?test=1&test2=2

Actual result:
--------------
http://www.example.com/?test2=2