#39450 [Com]: getenv() fills $_POST-Array
| From: | fugacityguy-developer at yahoo dot com | Date: | Thu, 21 Dec 2006 17:06:28 +0000 |
| Subject: | #39450 [Com]: getenv() fills $_POST-Array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106751@lists.php.net to get a copy of this message | ||
ID: 39450
Comment by: fugacityguy-developer at yahoo 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:
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.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2006-11-15 12:40:37] tony2001@php.net
Please make sure you don't have any zend_extensions or other third
party modules, which can affect PHP's behaviour.
------------------------------------------------------------------------
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