diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-10 17:55:01 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-10 17:55:01 +0000 |
commit | 0fd89aa20d7a8226e68f13f4418e9183b46acd6e (patch) | |
tree | 384b86d20f3e45e2eb7357c1c76eb492d279b953 /sapi/apache/mod_php4.c | |
parent | 7d926a0e0c0862b4469200b5ebb7cc85c263b2dc (diff) | |
download | php-git-0fd89aa20d7a8226e68f13f4418e9183b46acd6e.tar.gz |
More cleanup - move getenv() to SAPI
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r-- | sapi/apache/mod_php4.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index edf848dd6a..7a9cb0ee94 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -306,6 +306,14 @@ static int php_apache_get_uid(SLS_D) } +static char *php_apache_getenv(char *name, int name_len SLS_DC) +{ + char *value; + + return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name)); +} + + static sapi_module_struct sapi_module = { "Apache", /* name */ @@ -318,7 +326,7 @@ static sapi_module_struct sapi_module = { sapi_apache_ub_write, /* unbuffered write */ sapi_apache_flush, /* flush */ php_apache_get_uid, /* get uid */ - + php_apache_getenv, /* getenv */ php_error, /* error handler */ |