#31591 [Opn->Ver]: apache_getenv() is an 'undefined function'
| From: | sniper@php.net | Date: | Tue, 18 Jan 2005 11:12:14 +0000 |
| Subject: | #31591 [Opn->Ver]: apache_getenv() is an 'undefined function' | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969366028@lists.php.net to get a copy of this message | ||
ID: 31591
Updated by: sniper@php.net
Reported By: aronnax_98 at yahoo dot com
-Status: Open
+Status: Verified
-Bug Type: Apache related
+Bug Type: Documentation problem
Operating System: Mac OS X 10.3.7
PHP Version: 4.3.9
New Comment:
Yes, it is available, but only with Apache2.
Documentation should have a note about it.
Previous Comments:
------------------------------------------------------------------------
[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