diff --git a/sapi/apache/mod_php.c b/sapi/apache/mod_php.c index 8f4d93d..8cfd3eb 100644 --- a/sapi/apache/mod_php.c +++ b/sapi/apache/mod_php.c @@ -350,6 +350,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; } /* }}} */ @@ -647,9 +651,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();