summaryrefslogtreecommitdiff
path: root/ext/pcntl
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-01-20 10:34:17 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-01-20 10:34:17 +0100
commit68112224221d47169c69ea353beeb73c58ebbe3a (patch)
tree6df6967fd6e3641706b14146f741c771e258ca21 /ext/pcntl
parent5947437d47cc3bf8f289e52e6361fccad4b08ae3 (diff)
downloadphp-git-68112224221d47169c69ea353beeb73c58ebbe3a.tar.gz
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.
Diffstat (limited to 'ext/pcntl')
-rw-r--r--ext/pcntl/pcntl.c2
1 files changed, 1 insertions, 1 deletions
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);
}