Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.15

Bug #3942 addRawQueryString shouldn't delete old values
Submitted: 2005-03-24 11:58 UTC
From: wf at eteleon dot de Assigned:
Status: Bogus Package: Net_URL
PHP Version: 5.0.3 OS: Linux
Roadmaps: (Not assigned)    

 [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(""); $url->addQueryString( "test", 1 ); $url->addRawQueryString( "test2=2" ); echo $url->getURL(); Expected result: ---------------- Actual result: --------------


 [2005-03-25 00:18 UTC] richard
Thank you for taking the time to write to us, but this is not a bug. Perhaps should have been named set* instead of add*, but it is documented thus: * Sets the querystring to literally what you supply And it does just that.