From: Dmitry Stogov Date: Fri, 28 Aug 2015 13:10:07 +0000 (+0300) Subject: HANDLE_BLOCK_INTERRUPTIONS() is not used by SAPIs anymore. It may be useful only... X-Git-Tag: php-7.0.0RC2~2^2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=127db5a37d178caac24f4eabbc6695923864e60a;p=php HANDLE_BLOCK_INTERRUPTIONS() is not used by SAPIs anymore. It may be useful only when PHP configured with --enable-zend-signals. --- diff --git a/Zend/zend.h b/Zend/zend.h index 8062d75c76..de85a2c9d5 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -45,8 +45,11 @@ #endif #ifndef ZEND_SIGNALS -# define HANDLE_BLOCK_INTERRUPTIONS() if (zend_block_interruptions) { zend_block_interruptions(); } -# define HANDLE_UNBLOCK_INTERRUPTIONS() if (zend_unblock_interruptions) { zend_unblock_interruptions(); } +/* block/unblock interruptions callbacks might be used by SAPI, and were used + * by mod_php for Apache 1, but now they are not usefull anymore. + */ +# define HANDLE_BLOCK_INTERRUPTIONS() /*if (zend_block_interruptions) { zend_block_interruptions(); }*/ +# define HANDLE_UNBLOCK_INTERRUPTIONS() /*if (zend_unblock_interruptions) { zend_unblock_interruptions(); }*/ #else # define HANDLE_BLOCK_INTERRUPTIONS() ZEND_SIGNAL_BLOCK_INTERRUPUTIONS() # define HANDLE_UNBLOCK_INTERRUPTIONS() ZEND_SIGNAL_UNBLOCK_INTERRUPTIONS()