From:             [EMAIL PROTECTED]
Operating system: Linux 2.6.7
PHP version:      5.0.1
PHP Bug Type:     *Configuration Issues
Bug description:  variables_order behaviour

Description:
------------
Hi,
regardless of the setting for variables_order, all types of variables
(EGPCS) are registered by php. This is true for the apache, cli and cgi
SAPI.
For sure I doublechecked using the right ini-file.

If this is desired behaviour at least the docs are confusing:
http://www.php.net/manual/en/ini.sect.data-handling.php#ini.variables-order
as they imply, that variables which are not set in variables_order are
ignored by php.


Reproduce code:
---------------
Short repro-skript for cli:
./php -n -d variables_order="GPC" -r 'var_dump($_ENV,
$_SERVER);var_dump(ini_get("variables_order"));'

./php -v:
PHP 5.0.1 (cli) (built: Aug 31 2004 00:23:09)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.1, Copyright (c) 1998-2004 Zend Technologies



Expected result:
----------------
array(0) {
}
array(0) {
}
string(3) "GPC"


Actual result:
--------------
$_ENV and $_SERVER are filled

-- 
Edit bug report at http://bugs.php.net/?id=29971&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29971&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29971&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29971&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29971&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29971&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29971&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29971&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29971&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29971&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29971&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29971&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29971&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29971&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29971&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29971&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29971&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29971&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29971&r=float

Reply via email to