note 57659 deleted from function.http-build-query by nlopess
| From: | nlopess@php.net | Date: | Sat, 12 Aug 2006 18:21:38 +0000 |
| Subject: | note 57659 deleted from function.http-build-query by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115840@lists.php.net to get a copy of this message | ||
Note Submitter: arjini
----
Note that some hosts have the ini setting "arg_separator.output" set to &
("and amp ;" in case this form encoded that) and some have it set to just a plain old
ampersand. When running unit tests on a number of different hosts I kept getting inconsistent
results and in some cases double encoded html entitiy errors inside my url class. I changed
$queryString = http_build_query($args);
to
$queryString = html_entity_decode(http_build_query($args));
(one could change the ini setting instead but some hosts don't allow that, so this is the only
catch I all solution I found).