#83 [NEW]: warning in addQueryString method

From: Date: Thu, 09 Oct 2003 17:49:52 +0000
Subject: #83 [NEW]: warning in addQueryString method
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22535@lists.php.net to get a copy of this message
From: avb@php.net Operating system: Any PHP version: Irrelevant PHP Bug Type: Net_URL Bug description: warning in addQueryString method Description: ------------ The warning appears when trying to pass an array as a second parameter to addQueryString(). BTW, line 220 is completely redundant and should be removed: everything is correctly processed later in the method. Reproduce code: --------------- <?php require_once 'Net/URL.php'; $url =& new Net_URL('http://www.example.com/index.php'); $url->addQueryString('foo', array('bar', 'bar')); echo $url->getURL(); ?> Expected result: ---------------- http://www.example.com/index.php?foo[0]=bar&foo[1]=bar Actual result: -------------- <br /> <b>Warning</b>: urlencode() expects parameter 1 to be string, array given in <b>...\Net\URL.php</b> on line <b>220</b><br /> http://www.example.com/index.php?foo[0]=bar&foo[1]=bar -- Edit bug report at http://pear.php.net/bugs/bug.php?id=83&edit=1 --

« previous php.pear.dev (#22535) next »