From 68112224221d47169c69ea353beeb73c58ebbe3a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 20 Jan 2020 10:34:17 +0100 Subject: Eliminate uses of ZVAL_ZVAL and friends Instead add RETURN_COPY(_VALUE) macros will the expected behavior. RETURN_ZVAL doesn't make any sense since PHP 7, but has stuck around, probably because the alternative was to write directly to the return_value variable. --- ext/pcntl/pcntl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcntl') diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 17f49ce243..0cf698c9a8 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1028,7 +1028,7 @@ PHP_FUNCTION(pcntl_signal_get_handler) } if ((prev_handle = zend_hash_index_find(&PCNTL_G(php_signal_table), signo)) != NULL) { - RETURN_ZVAL(prev_handle, 1, 0); + RETURN_COPY(prev_handle); } else { RETURN_LONG((zend_long)SIG_DFL); } -- cgit v1.2.1