|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-01-18 04:01 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 22:00:01 2025 UTC |
These functions differ only in availability (both of them may or may not exist) and utilization of safe_mode AFAIK. They are bound in the meaning that apache_setenv("X", "a") affects getenv("X") but putenv("X=a") doesn't affect apache_getenv("X").