From: Julien Pauli Date: Sat, 29 Nov 2014 13:39:19 +0000 (+0100) Subject: Fix #60509, pcntl_signal doesn't decrease ref-count of old handler X-Git-Tag: PRE_NATIVE_TLS_MERGE~112^2~1^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19b5bc8ce22b1476eb084a8b64c137bb8b17d674;p=php Fix #60509, pcntl_signal doesn't decrease ref-count of old handler --- 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; }