]> granicus.if.org Git - php/commitdiff
Make sure the timeout is checked in the shutdown function, patch from Etienne
authorScott MacVicar <scottmac@php.net>
Sat, 30 May 2009 09:47:39 +0000 (09:47 +0000)
committerScott MacVicar <scottmac@php.net>
Sat, 30 May 2009 09:47:39 +0000 (09:47 +0000)
main/main.c

index a5736e9314b0661f2614dd267f154452c76e6a4f..f05e63b63db16b7a69a44334eb2ea06f2a175bb5 100644 (file)
@@ -1378,7 +1378,7 @@ static void php_message_handler_for_zend(long message, void *data TSRMLS_DC)
 void php_on_timeout(int seconds TSRMLS_DC) /* {{{ */
 {
        PG(connection_status) |= PHP_CONNECTION_TIMEOUT;
-       zend_set_timeout(EG(timeout_seconds), 0);
+       zend_set_timeout(EG(timeout_seconds), 1);
        if(PG(exit_on_timeout)) sapi_terminate_process(TSRMLS_C);
 }
 /* }}} */