Re: #31591 [Csd->Opn]: env information needs clarification

From: Date: Wed, 13 Apr 2005 09:30:44 +0000
Subject: Re: #31591 [Csd->Opn]: env information needs clarification
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969367804@lists.php.net to get a copy of this message
Please un-subsribe me from this list. Thanks ----- Original Message ----- From: <philip@php.net> To: <phpdoc@lists.php.net> Sent: Thursday, March 31, 2005 11:15 PM Subject: [PHP-DOC] #31591 [Csd->Opn]: env information needs clarification > ID: 31591 > Updated by: philip@php.net > -Summary: apache_getenv() is an 'undefined function' > Reported By: aronnax_98 at yahoo dot com > -Status: Closed > +Status: Open > Bug Type: Documentation problem > Operating System: Mac OS X 10.3.7 > PHP Version: 4.3.9 > > > Previous Comments: > ------------------------------------------------------------------------ > > [2005-01-18 19:44:54] philip@php.net > > This requirement has been documented, but some questions: > > 1) Assuming putenv() or apache_setenv() aren't used, will > apache_getenv(), getenv(), and the Superglobals always have the same > value? > > 2) How do these functions differ? putenv() vs. apache_setenv(), etc. > > > ------------------------------------------------------------------------ > > [2005-01-18 12:12:13] sniper@php.net > > Yes, it is available, but only with Apache2. > Documentation should have a note about it. > > > ------------------------------------------------------------------------ > > [2005-01-18 04:01:58] aronnax_98 at yahoo dot com > > Description: > ------------ > When I try to call apache_getenv(...), PHP claims that > the function doesn't exist. The function is present in > the online PHP manual. > > Reproduce code: > --------------- > echo apache_getenv('SOME_ENV_VARIABLE'); > > Expected result: > ---------------- > VALUE_OF_SOME_ENV_VARIABLE > > Actual result: > -------------- > Fatal error: Call to undefined function: apache_getenv() > in /www/php/dryerase/config.php on line 21 > > > ------------------------------------------------------------------------ > > > -- > Edit this bug report at > http://bugs.php.net/?id=31591&edit=1

« previous php.doc (#969367804) next »