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

index da082359a050b5e9df159884f788b2b90e8757bf..e032b03bd2e889b56111e5fde9c9e60b43eee1a4 100644 (file)
@@ -1276,7 +1276,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);
 }