From: Dmitry Stogov Date: Thu, 5 Nov 2009 09:33:19 +0000 (+0000) Subject: Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind... X-Git-Tag: php-5.4.0alpha1~191^2~2428 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a50b6f8ee0c0ee956a8d3ce190a74d7b1836fa7a;p=php Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind Srinivasan) --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index dc587a73dd..c27af2659f 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1596,7 +1596,7 @@ void zend_unset_timeout(TSRMLS_D) /* {{{ */ } #else # ifdef HAVE_SETITIMER - { + if (EG(timeout_seconds)) { struct itimerval no_timeout; no_timeout.it_value.tv_sec = no_timeout.it_value.tv_usec = no_timeout.it_interval.tv_sec = no_timeout.it_interval.tv_usec = 0;