]> granicus.if.org Git - php/commit
Fix #72409 - return previous handler
authorDavid Walker <dave@mudsite.com>
Sat, 2 Jul 2016 16:44:17 +0000 (10:44 -0600)
committerAaron Piotrowski <aaron@trowski.com>
Wed, 6 Jul 2016 18:57:37 +0000 (13:57 -0500)
commit217dcbcd911ad0552a4435fe979c069a5ddaef9f
treea5726df21a98b0dab3fd72c41ff9fa9f543a70f0
parent023b81259325c00012c0f703976c082be72dc5b9
Fix #72409 - return previous handler

This patch addresses https://bugs.php.net/bug.php?id=72409

This patch is applied to master compared to PR#1952 which was
patching 5.6.x branch of PHP

This patch takes into account discussions on PR #1978
Addressing that rather than have pcntl_signal() return a value
to create a new function that can be used to get the current
value of the signal handler.
ext/pcntl/pcntl.c
ext/pcntl/php_pcntl.h
ext/pcntl/tests/pcntl_signal_get_handler.phpt [new file with mode: 0644]