summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-18 10:43:34 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-18 10:44:27 +0200
commitbbcfa5083ec9d369b88a866c553c512fd948f81f (patch)
tree18222bf7cbcdc4d3038cb6de31699ee2b5adcceb
parent33656f0289df34de8f1ceb23079d3dd06b589dec (diff)
downloadphp-git-bbcfa5083ec9d369b88a866c553c512fd948f81f.tar.gz
Remove Z_PARAM_ZVAL_DEREF
Since PHP 7.4 using this is very likely wrong, and we don't have any core uses of it for that reason. Extensions shouldn't be using it either. Accept as Z_PARAM_ZVAL and then assign using ZEND_TRY_ASSIGN macros.
-rw-r--r--Zend/zend_API.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 3b7b7cd7e9..ce641dff39 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -1486,14 +1486,6 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error(int num, char *e
#define Z_PARAM_ZVAL(dest) \
Z_PARAM_ZVAL_EX(dest, 0, 0)
-/* old "z" (with dereference) */
-#define Z_PARAM_ZVAL_DEREF_EX(dest, check_null, separate) \
- Z_PARAM_PROLOGUE(1, separate); \
- zend_parse_arg_zval_deref(_arg, &dest, check_null);
-
-#define Z_PARAM_ZVAL_DEREF(dest) \
- Z_PARAM_ZVAL_DEREF_EX(dest, 0, 0)
-
/* old "+" and "*" */
#define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \
int _num_varargs = _num_args - _i - (post_varargs); \