summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index 5d05e01f52..edf848dd6a 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -300,6 +300,12 @@ static int php_apache_sapi_activate(SLS_D)
}
+static int php_apache_get_uid(SLS_D)
+{
+ return ((request_rec *) SG(server_context))->finfo.st_uid;
+}
+
+
static sapi_module_struct sapi_module = {
"Apache", /* name */
@@ -311,6 +317,7 @@ static sapi_module_struct sapi_module = {
sapi_apache_ub_write, /* unbuffered write */
sapi_apache_flush, /* flush */
+ php_apache_get_uid, /* get uid */
php_error, /* error handler */