]> granicus.if.org Git - php/commitdiff
- fix build when no zend signal support
authorPierre Joye <pajoye@php.net>
Thu, 8 Sep 2011 09:17:21 +0000 (09:17 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 8 Sep 2011 09:17:21 +0000 (09:17 +0000)
Zend/zend_execute_API.c

index 2572f85b907c168ba4f7167662db044ae75fb5ad..9d4cc799a234a697746d99642da7d593bc14579f 100644 (file)
@@ -1328,6 +1328,7 @@ ZEND_API void zend_timeout(int dummy) /* {{{ */
        TSRMLS_FETCH();
 
        if (zend_on_timeout) {
+#ifdef ZEND_SIGNALS
                /* 
                   We got here because we got a timeout signal, so we are in a signal handler
                   at this point. However, we want to be able to timeout any user-supplied
@@ -1335,6 +1336,7 @@ ZEND_API void zend_timeout(int dummy) /* {{{ */
                   calling these 
                */
                SIGG(running) = 0;
+#endif
                zend_on_timeout(EG(timeout_seconds) TSRMLS_CC);
        }