MFB: init server context before config variables are processed

This commit is contained in:
Stanislav Malyshev 2008-11-29 00:46:27 +00:00
parent 1275a176e9
commit c73e385315

View file

@ -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);