$_ENV superglobal contains compile-time snapshot

From: Date: Tue, 17 Sep 2002 20:23:11 +0000
Subject: $_ENV superglobal contains compile-time snapshot
Groups: php.install 
Request: Send a blank email to php-install+get-8491@lists.php.net to get a copy of this message
Hello all, I have tried to locate this issue in list archives and elsewhere, but without any success; I do apologise if it has arisen before - perhaps someone could point me to the cause/resolution? Otherwise, it is most intriguing.. perhaps one of the development team (or anyone able to RTFS) can shine some light.. I have recently upgraded the PHP/Apache installation on a box to versions 4.2.2/1.3.26 respectively. Some unusual behaviour has been observed, noticibly with regard to the envelope sender of emails generated with mail(). The Apache process is running as user "www" and the mail was injected by this user. However, the envelope sender was that of the user that compiled PHP! Further investigation has shown that the entire $_ENV superglobal variable contains a compile-time snapshot of the environment, rather than a true run-time breakdown (as suggested should be the case by the documentation). I suspect that this is incorrect behaviour and the reason for the incorrect envelope sender. I hope that someone is able to suggest a resolution, as this is a most perculiar situation that has not been experienced on any of the other similar systems under my administration. The OS is OpenBSD 2.9. Many thanks in advance, Alexi -- Alexi Margo <alexi@nickety.co.uk>

« previous php.install (#8491) next »