diff options
author | Dmitry Stogov <dmitry@php.net> | 2009-11-05 09:33:19 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2009-11-05 09:33:19 +0000 |
commit | 10b30b51bc249d2e4bbf750f176b5abfde3c2d53 (patch) | |
tree | ac49ca9308f4a32cfd86f2c29e7fc3d2a85a3645 | |
parent | fa67c860e0ef6bb2a1dd556c9c3e33ad105143bc (diff) | |
download | php-git-10b30b51bc249d2e4bbf750f176b5abfde3c2d53.tar.gz |
Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind Srinivasan)
-rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index c54d00fa51..ead346d197 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1481,7 +1481,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; |