From 19b5bc8ce22b1476eb084a8b64c137bb8b17d674 Mon Sep 17 00:00:00 2001 From: Julien Pauli Date: Sat, 29 Nov 2014 14:39:19 +0100 Subject: Fix #60509, pcntl_signal doesn't decrease ref-count of old handler --- ext/pcntl/pcntl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/pcntl') 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; } -- cgit v1.2.1