From c73e385315bf2b8eb27462486c0f51a3bbb19c8b Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sat, 29 Nov 2008 00:46:27 +0000 Subject: [PATCH] MFB: init server context before config variables are processed --- sapi/apache/mod_php.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapi/apache/mod_php.c b/sapi/apache/mod_php.c index ddde6d5927..9159f50a15 100644 --- a/sapi/apache/mod_php.c +++ b/sapi/apache/mod_php.c @@ -606,6 +606,8 @@ static int send_php(request_rec *r, int display_source_mode, char *filename) return OK; } + SG(server_context) = r; + zend_first_try { /* Make sure file exists */ @@ -663,8 +665,6 @@ static int send_php(request_rec *r, int display_source_mode, char *filename) /* Init timeout */ hard_timeout("send", r); - SG(server_context) = r; - php_save_umask(); add_common_vars(r); add_cgi_vars(r); -- 2.50.1