diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-11-01 10:25:10 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-11-01 10:25:10 +0800 |
commit | a8a17a72b06e6ea39a70eaf45ad2c3d6668e29ba (patch) | |
tree | 4cae24e0c78f7580e707bcab3d19729eca3b318c /ext/pcntl | |
parent | 0056f52f500f9056039e8976e1100c9f154daa75 (diff) | |
download | php-git-a8a17a72b06e6ea39a70eaf45ad2c3d6668e29ba.tar.gz |
RC manipulation cleanup
Diffstat (limited to 'ext/pcntl')
-rw-r--r-- | ext/pcntl/pcntl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index f9ea76de4f..52d107419d 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1040,7 +1040,7 @@ PHP_FUNCTION(pcntl_signal) /* Add the function name to our signal table */ if (zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle)) { - if (Z_REFCOUNTED_P(handle)) Z_ADDREF_P(handle); + Z_TRY_ADDREF_P(handle); } if (php_signal4(signo, pcntl_signal_handler, (int) restart_syscalls, 1) == (Sigfunc *)SIG_ERR) { |