#39450 [Com]: getenv() fills $_POST-Array
| From: | smlerman at gmail dot com | Date: | Thu, 21 Dec 2006 21:42:00 +0000 |
| Subject: | #39450 [Com]: getenv() fills $_POST-Array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106757@lists.php.net to get a copy of this message | ||
ID: 39450
Comment by: smlerman at gmail dot com
Reported By: patrik dot mayer at i12 dot de
Status: Open
Bug Type: Unknown/Other Function
Operating System: SuSE 10, 2.6.13-15.12-smp
PHP Version: 5.2.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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().
------------------------------------------------------------------------
[2006-11-20 13:21:54] patrik dot mayer at i12 dot de
Nope, there are non loaded.
------------------------------------------------------------------------
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