# arg_separator.input / arg_separator.output and ini files.

- Thread: https://externals.io/message/43719
- Original archive: https://news-web.php.net/php.internals/43719
- Started by Richard Quadling on 2009-04-16T15:41:20+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #43719 — Richard Quadling — 2009-04-16T15:41:20+00:00

URL: https://externals.io/message/43719#43719

Hi.

In the ini files the arg_separator's are detailed as ...

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://php.net/arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://php.net/arg-separator.input
; Example:
;arg_separator.input = ";&"


In php-src/main/main.c /* $Id: main.c,v 1.795 2009/03/27 02:33:44
lbarnaud Exp $ */, lines 540-541 ...

	STD_PHP_INI_ENTRY("arg_separator.output",	"&",		PHP_INI_ALL,		OnUpdateStringUnempty,	arg_separator.output,	php_core_globals,	core_globals)
	STD_PHP_INI_ENTRY("arg_separator.input",	"&",		PHP_INI_SYSTEM|PHP_INI_PERDIR,	OnUpdateStringUnempty,	arg_separator.input,	php_core_globals,	core_globals)


Why are the defaults in PHP not the same as the defaults for the INI
files, considering both php.ini-development and php.ini-production
both agree on the alternative setting?

Richard.

-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

---

## #43720 — Jani Taskinen — 2009-04-16T16:44:55+00:00

URL: https://externals.io/message/43719#43720 · In reply to: #43719

Richard Quadling kirjoitti:
> Hi.
> 
> In the ini files the arg_separator's are detailed as ...
> 
> ; The separator used in PHP generated URLs to separate arguments.
> ; PHP's default setting is "&".
> ; http://php.net/arg-separator.output
> ; Example:
> ;arg_separator.output = "&amp;"
> 
> ; List of separator(s) used by PHP to parse input URLs into variables.
> ; PHP's default setting is "&".
> ; NOTE: Every character in this directive is considered as separator!
> ; http://php.net/arg-separator.input
> ; Example:
> ;arg_separator.input = ";&"
> 
> 
> In php-src/main/main.c /* $Id: main.c,v 1.795 2009/03/27 02:33:44
> lbarnaud Exp $ */, lines 540-541 ...
> 
> 	STD_PHP_INI_ENTRY("arg_separator.output",	"&",		PHP_INI_ALL,		OnUpdateStringUnempty,	arg_separator.output,	php_core_globals,	core_globals)
> 	STD_PHP_INI_ENTRY("arg_separator.input",	"&",		PHP_INI_SYSTEM|PHP_INI_PERDIR,	OnUpdateStringUnempty,	arg_separator.input,	php_core_globals,	core_globals)
> 
> 
> Why are the defaults in PHP not the same as the defaults for the INI
> files, considering both php.ini-development and php.ini-production
> both agree on the alternative setting?

Read the comments a bit more carefully:

 > ; Example:
 > ;arg_separator.input = ";&"

Note the word "example" there..

--Jani

---

## #43722 — Richard Quadling — 2009-04-16T21:08:26+00:00

URL: https://externals.io/message/43719#43722 · In reply to: #43720

2009/4/16 Jani Taskinen <jani.taskinen@sci.fi>:
> Richard Quadling kirjoitti:
> > […]
>
> Read the comments a bit more carefully:
>
> > […]
>
> Note the word "example" there..
>
> --Jani
>

Oh bugger. I spent a good 10 minutes on that.

-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
