Bug #68008 [NEW]: When variables_order is set to "" doesn't work as expected

From: Date: Thu, 11 Sep 2014 18:04:41 +0000
Subject: Bug #68008 [NEW]: When variables_order is set to "" doesn't work as expected
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187522@lists.php.net to get a copy of this message
From: joksnet at gmail dot com Operating system: x86_64 GNU/Linux PHP version: 5.5.16 Package: *Configuration Issues Bug Type: Bug Bug description:When variables_order is set to "" doesn't work as expected Description: ------------ Hello, When the setting variables_order is set to "", the documentation [0] says: > Setting to "" means no superglobals will be set. But instead the default "EGPCS" is set. The only way I found of disable superglobals (because track_vars is deprecated) is to set variables_order to a letter different of "EGPCS", like "N". This way superglobals are set (isset($_SERVER) still true), but not populated. [0]: http://php.net/manual/en/ini.core.php#ini.variables-order Test script: --------------- % php -n -d variables_order="" -r "var_dump(\$_SERVER);" % php -n -d variables_order="N" -r "var_dump(\$_SERVER);" Expected result: ---------------- array(0) { } array(0) { } Actual result: -------------- array(52) { ... ["SHELL"]=> string(8) "/bin/zsh" ["TERM"]=> string(14) "xterm-256color" ... } array(0) { } -- Edit bug report at https://bugs.php.net/bug.php?id=68008&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68008&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68008&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68008&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68008&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68008&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68008&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68008&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68008&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68008&r=support Expected behavior: https://bugs.php.net/fix.php?id=68008&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68008&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68008&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68008&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68008&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68008&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68008&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68008&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68008&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68008&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68008&r=mysqlcfg

« previous php.bugs (#187522) next »