diff options
Diffstat (limited to 'ext/pcntl/php_signal.c')
-rw-r--r-- | ext/pcntl/php_signal.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c index 6e40123ffd..ca091e0b78 100644 --- a/ext/pcntl/php_signal.c +++ b/ext/pcntl/php_signal.c @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ - | PHP Version 5 | + | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +----------------------------------------------------------------------+ @@ -29,7 +29,6 @@ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) { struct sigaction act,oact; #ifdef ZEND_SIGNALS - TSRMLS_FETCH(); #endif act.sa_handler = func; if (mask_all) { @@ -48,14 +47,14 @@ Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) #endif } #ifdef ZEND_SIGNALS - if (zend_sigaction(signo, &act, &oact TSRMLS_CC) < 0) + if (zend_sigaction(signo, &act, &oact) < 0) #else if (sigaction(signo, &act, &oact) < 0) #endif { return SIG_ERR; } - + return oact.sa_handler; } |