From: Scott MacVicar Date: Sat, 30 May 2009 09:47:39 +0000 (+0000) Subject: Make sure the timeout is checked in the shutdown function, patch from Etienne X-Git-Tag: php-5.4.0alpha1~191^2~3445 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e10ba6e9458c6065f5a39f8b25c064b3526df761;p=php Make sure the timeout is checked in the shutdown function, patch from Etienne --- diff --git a/main/main.c b/main/main.c index a5736e9314..f05e63b63d 100644 --- a/main/main.c +++ b/main/main.c @@ -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); } /* }}} */