Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16979
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Rant: http_build_query() and arg_separator.output |
| Date | 2016-08-26 11:48 +0200 |
| Organization | solani.org |
| Message-ID | <npp38v$8vj$1@solani.org> (permalink) |
| References | <71e67ba6-2bd8-bc0f-3276-b8dbfd6b75c9@arnowelzel.de> |
On 26.08.2016 at 09:05, Arno Welzel wrote: > Anway - the original behaviour of http_build_query() was to use single > ampersands. > > But NOW the default behaviour is just unpredictable, since the function > uses either a single ampersand OR if set the runtime configuration > arg_separator.output. That's not quite correct. Actually, arg_separator.output is available as of PHP 4.0.5, but http_build_query() has been introduced in PHP 5.0.0 only, and the function used the ini setting from the beginning. So there has not been a BC break here. Furthermore, http_build_query()'s behavior is not unpredictable, but it rather depends on a PHP_INI_ALL ini setting (unless the $arg_separator argument is set). A portable software is supposed to either set $arg_separator or arg_separator.output when using http_build_query() (or at the very least to document the issue). So I suggest that you file a ticket for the software that doesn't do so. -- Christoph M. Becker
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Rant: http_build_query() and arg_separator.output Arno Welzel <usenet@arnowelzel.de> - 2016-08-26 09:05 +0200
Re: Rant: http_build_query() and arg_separator.output "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-08-26 11:48 +0200
Re: Rant: http_build_query() and arg_separator.output Arno Welzel <usenet@arnowelzel.de> - 2016-08-29 07:43 +0200
Re: Rant: http_build_query() and arg_separator.output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-08-29 13:16 +0100
Re: Rant: http_build_query() and arg_separator.output Arno Welzel <usenet@arnowelzel.de> - 2016-08-30 08:39 +0200
Re: Rant: http_build_query() and arg_separator.output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-08-30 15:10 +0100
Re: Rant: http_build_query() and arg_separator.output Arno Welzel <usenet@arnowelzel.de> - 2016-09-01 08:43 +0200
Re: Rant: http_build_query() and arg_separator.output Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-07 22:18 +0200
Re: Rant: http_build_query() and arg_separator.output "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-08-29 14:53 +0200
Re: Rant: http_build_query() and arg_separator.output Arno Welzel <usenet@arnowelzel.de> - 2016-09-01 08:53 +0200
csiph-web