#39450 [Opn->Asn]: getenv() fills $_POST-Array
| From: | tony2001@php.net | Date: | Thu, 21 Dec 2006 23:30:55 +0000 |
| Subject: | #39450 [Opn->Asn]: getenv() fills $_POST-Array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106762@lists.php.net to get a copy of this message | ||
ID: 39450
Updated by: tony2001@php.net
Reported By: patrik dot mayer at i12 dot de
-Status: Open
+Status: Assigned
Bug Type: Unknown/Other Function
Operating System: SuSE 10, 2.6.13-15.12-smp
PHP Version: 5.2.0
-Assigned To:
+Assigned To: iliaa
Previous Comments:
------------------------------------------------------------------------
[2006-12-21 21:42:00] smlerman at gmail dot com
Confirmed on Windows XP Professional.
register_globals = Off
register_long_arrays = Off
variables_order = GPCS
Changing variables_order to EGPCS does seem to fix the problem.
------------------------------------------------------------------------
[2006-12-21 17:06:27] fugacityguy-developer at yahoo dot com
I am getting a similar behavior where calling getenv() is populating
the $_FILES global:
<?
var_dump($_FILES);
echo "<br>\n";
$h = getenv('DOCUMENT_ROOT');
var_dump($_FILES);
?>
yields:
array(0) { } array(0) { }
array(1) { ["DOCUMENT_ROOT"]=> string(26) "/usr/csite/WebServer/html/"
}
This is PHP 5.2.0 on Redhat Enterprise Linux 4.
------------------------------------------------------------------------
[2006-12-15 22:14:29] balue at gmail dot com
I'm experiencing the same issue as well using:
Apache 1.3.37
PHP 5.2
FreeBSD 4.11 (most current patches)
This did not happen in 5.1.6. And Yes, changing the variable_order to
EGPCS fixed it as well.
------------------------------------------------------------------------
[2006-11-27 14:52:26] patrik dot mayer at i12 dot de
Hi,
sorry for not getting back soon.
I've emailed our phpinfo() to tony2001 (at) php (dot) net.
Hopefully you can see anything where the behavior could come from.
At the moment we are fine by setting variables_order from GPCS to
EGPCS.
Big thnx from germany.
------------------------------------------------------------------------
[2006-11-20 13:26:37] tony2001@php.net
Well, we still have not idea how to reproduce this.
Please show your phpinfo().
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39450
--
Edit this bug report at http://bugs.php.net/?id=39450&edit=1