Skip to content

Commit bbcfa50

Browse files
committed
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.
1 parent 33656f0 commit bbcfa50

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Zend/zend_API.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,14 +1486,6 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_callback_error(int num, char *e
14861486
#define Z_PARAM_ZVAL(dest) \
14871487
Z_PARAM_ZVAL_EX(dest, 0, 0)
14881488

1489-
/* old "z" (with dereference) */
1490-
#define Z_PARAM_ZVAL_DEREF_EX(dest, check_null, separate) \
1491-
Z_PARAM_PROLOGUE(1, separate); \
1492-
zend_parse_arg_zval_deref(_arg, &dest, check_null);
1493-
1494-
#define Z_PARAM_ZVAL_DEREF(dest) \
1495-
Z_PARAM_ZVAL_DEREF_EX(dest, 0, 0)
1496-
14971489
/* old "+" and "*" */
14981490
#define Z_PARAM_VARIADIC_EX(spec, dest, dest_num, post_varargs) do { \
14991491
int _num_varargs = _num_args - _i - (post_varargs); \

0 commit comments

Comments
 (0)