diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-24 16:30:49 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-24 16:30:49 +0200 |
commit | 7a6ae9b14801f9f1745034888d3ed54b0b124b34 (patch) | |
tree | 7e61156e353d4d2df404a01ac4b56b80dff05355 /Zend/zend_execute_API.c | |
parent | 779e9044656c674f1c0ed93530507e0bd5f071d5 (diff) | |
download | php-git-7a6ae9b14801f9f1745034888d3ed54b0b124b34.tar.gz |
Fix refcounting for the named params case as well
Adjust the test case to pass a refcounted value and to also check
the named params case.
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 5a0e2a48f1..0e721c451e 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -826,6 +826,7 @@ cleanup_args: if (EXPECTED(!must_wrap)) { ZVAL_COPY(target, arg); } else { + Z_TRY_ADDREF_P(arg); ZVAL_NEW_REF(target, arg); } if (!name) { |