note 97698 deleted from function.http-build-query by danbrown
| From: | danbrown@php.net | Date: | Mon, 03 May 2010 23:57:35 +0000 |
| Subject: | note 97698 deleted from function.http-build-query by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168898@lists.php.net to get a copy of this message | ||
Note Submitter: Maverick at do_not_spam_me dot com
----
(please remove precedent submission with email)
On some odd version such as Xampp Windows under PHP 5.1.1, the function is not working correctly.
It takes in account only 2 arguments. So in some scripts, you have to change/adapt the script
accordingly:
For instance, I add this script:
if (eregi("Win32", $_SERVER['SERVER_SIGNATURE']))
$ret = http_build_query($formdata,$prefix);
else
$ret = http_build_query($formdata, $prefix, $separator);
Otherwise, it would throw a warning error:
"Warning: http_build_query() expects at most 2 parameters, 3 given in"