diff --git a/sapi/apache/mod_php5.c b/sapi/apache/mod_php5.c index a5afb77..ff69dc5 100644 --- a/sapi/apache/mod_php5.c +++ b/sapi/apache/mod_php5.c @@ -353,6 +353,10 @@ static int php_apache_sapi_activate(TSRMLS_D) * send headers. */ SG(request_info).headers_only = r->header_only; + + /* Init timeout */ + hard_timeout("send", r); + return SUCCESS; } /* }}} */ @@ -654,9 +658,6 @@ static int send_php(request_rec *r, int display_source_mode, char *filename) scripts may change this later in the request. */ r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC); - /* Init timeout */ - hard_timeout("send", r); - SG(server_context) = r; php_save_umask();