#41679 [Opn->Fbk]: variables_order parameter is ignored

From: Date: Thu, 14 Jun 2007 20:12:11 +0000
Subject: #41679 [Opn->Fbk]: variables_order parameter is ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113803@lists.php.net to get a copy of this message
ID: 41679 Updated by: sniper@php.net Reported By: denis_test at freemail dot ru -Status: Open +Status: Feedback Bug Type: PHP options/info functions Operating System: FreeBSD 6.2-RELEASE-p3 PHP Version: 5.2.3 New Comment: Are you by any chance using PHP as CGI/FastCGI binary here? If so, this is expected, although not documented. In CGI mode the environment is considered part of $_SERVER variables too so having that 'S' causes these to be overwritten. Previous Comments: ------------------------------------------------------------------------ [2007-06-14 19:04:19] sniper@php.net And now I misread the results. :D ------------------------------------------------------------------------ [2007-06-14 19:03:43] sniper@php.net You propably misunderstood how it works, it's the opposite: http://www.php.net/manual/en/ini.core.php#ini.variables-order "..for example if variables_order is set to "EGPCS", register_globals is enabled, and both $_GET['action'] and $_POST['action'] are set, then $action will contain the value of $_POST['action'] as P comes after G.." ------------------------------------------------------------------------ [2007-06-14 08:12:27] denis_test at freemail dot ru You say: "Env is parsed first, so no wonder it gets overwritten by GET that is parsed second." But I am sorry, my situation is direct opposite. As you can see GET is overwritten by Env. ------------------------------------------------------------------------ [2007-06-13 12:28:30] denis_test at freemail dot ru Description: ------------ Configuration: variables_order EGPCS register_globals On Environment variable HOME is set to "/". I start script with test.php?HOME=test Reproduce code: --------------- <? echo $HOME; ?> Expected result: ---------------- test Actual result: -------------- / ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41679&edit=1

« previous php.bugs (#113803) next »