Browse Source

MFB: init server context before config variables are processed

experimental/5.3-FPM
Stanislav Malyshev 18 years ago
parent
commit
09e37bc5ed
  1. 4
      sapi/apache/mod_php5.c

4
sapi/apache/mod_php5.c

@ -613,6 +613,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 */
@ -670,8 +672,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);

Loading…
Cancel
Save