Re: getting $_ENV variables

From: Date: Thu, 10 May 2007 14:06:12 +0000
Subject: Re: getting $_ENV variables
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-254727@lists.php.net to get a copy of this message
Daniel Brown wrote:
I guess I really didn't understand that myself before either. So Richard, even though it's disabling data output, it still exists as an array?
The array ($_ENV) exists, it is just the population of it that has been disabled, thus it's empty. Just in the same way that doing a print_r($_GET) will always display an empty array even if the query string is totally blank, or print_r($_POST) does the same, even though you didn't post a thing to the script. The super-globals I guess must just be created at run-time, and populated later on in the process, by which time the php.ini settings have been taken into account and stopped the action. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"

« previous php.general (#254727) next »