summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-10 17:55:01 +0000
committerZeev Suraski <zeev@php.net>2000-02-10 17:55:01 +0000
commit0fd89aa20d7a8226e68f13f4418e9183b46acd6e (patch)
tree384b86d20f3e45e2eb7357c1c76eb492d279b953 /sapi/apache/mod_php4.c
parent7d926a0e0c0862b4469200b5ebb7cc85c263b2dc (diff)
downloadphp-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.c10
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 */