Skip to content

Commit 8d8ec74

Browse files
committed
Use zend_call_trampoline_arginfo in zend_get_call_trampoline_func()
1 parent d703aed commit 8d8ec74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_object_handlers.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,6 @@ ZEND_API ZEND_ATTRIBUTE_NONNULL zend_function *zend_get_call_trampoline_func(
16851685
* The low bit must be zero, to not be interpreted as a MAP_PTR offset.
16861686
*/
16871687
static const void *dummy = (void*)(intptr_t)2;
1688-
static const zend_arg_info arg_info[1] = {{0}};
16891688

16901689
if (EXPECTED(EG(trampoline).common.function_name == NULL)) {
16911690
func = &EG(trampoline).op_array;
@@ -1732,7 +1731,7 @@ ZEND_API ZEND_ATTRIBUTE_NONNULL zend_function *zend_get_call_trampoline_func(
17321731
func->prop_info = NULL;
17331732
func->num_args = 0;
17341733
func->required_num_args = 0;
1735-
func->arg_info = (zend_arg_info *) arg_info;
1734+
func->arg_info = zend_call_trampoline_arginfo;
17361735

17371736
return (zend_function*)func;
17381737
}

0 commit comments

Comments
 (0)