com php-src: Fix #60509, pcntl_signal doesn't decrease ref-count of old handler: ext/pcntl/pcntl.c

From: Date: Sat, 29 Nov 2014 13:39:19 +0000
Subject: com php-src: Fix #60509, pcntl_signal doesn't decrease ref-count of old handler: ext/pcntl/pcntl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83389@lists.php.net to get a copy of this message
Commit: 19b5bc8ce22b1476eb084a8b64c137bb8b17d674 Author: Julien Pauli <jpauli@php.net> Sat, 29 Nov 2014 14:39:19 +0100 Parents: 59bd4117ac6d8fb6b5866a4a0a0bbbdc12aae0ba Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=19b5bc8ce22b1476eb084a8b64c137bb8b17d674 Log: Fix #60509, pcntl_signal doesn't decrease ref-count of old handler Bugs: https://bugs.php.net/60509 Changed paths: M ext/pcntl/pcntl.c Diff: diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index b7ef4c7..3c9eb67 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; }

« previous php.cvs (#83389) next »