summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Pauli <jpauli@php.net>2014-11-29 14:39:19 +0100
committerJulien Pauli <jpauli@php.net>2014-11-29 14:39:19 +0100
commit19b5bc8ce22b1476eb084a8b64c137bb8b17d674 (patch)
tree54b6224e9230eaa92d30a4f34c047e1acc62af4e
parent59bd4117ac6d8fb6b5866a4a0a0bbbdc12aae0ba (diff)
downloadphp-git-19b5bc8ce22b1476eb084a8b64c137bb8b17d674.tar.gz
Fix #60509, pcntl_signal doesn't decrease ref-count of old handler
-rw-r--r--ext/pcntl/pcntl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index b7ef4c729c..3c9eb67629 100644
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -878,6 +878,7 @@ PHP_FUNCTION(pcntl_signal)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error assigning signal");
RETURN_FALSE;
}
+ zend_hash_index_del(&PCNTL_G(php_signal_table), signo);
RETURN_TRUE;
}