Skip to content

Commit 3f546be

Browse files
committed
Just fix the wrong num_args
1 parent 00eb847 commit 3f546be

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ext/zend_test/test.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,6 @@ static zend_object *zend_test_class_new(zend_class_entry *class_type)
647647
return obj;
648648
}
649649

650-
static zend_internal_arg_info arginfo_ZendTestClass___call[] = {
651-
{"foo", {0}, NULL},
652-
};
653-
654650
static zend_function *zend_test_class_method_get(zend_object **object, zend_string *name, const zval *key)
655651
{
656652
if (zend_string_equals_literal_ci(name, "test")) {
@@ -663,8 +659,7 @@ static zend_function *zend_test_class_method_get(zend_object **object, zend_stri
663659
}
664660
memset(fptr, 0, sizeof(zend_internal_function));
665661
fptr->type = ZEND_INTERNAL_FUNCTION;
666-
fptr->num_args = sizeof(arginfo_ZendTestClass___call) / sizeof(zend_internal_arg_info);
667-
fptr->arg_info = arginfo_ZendTestClass___call;
662+
fptr->num_args = 0;
668663
fptr->scope = (*object)->ce;
669664
fptr->fn_flags = ZEND_ACC_CALL_VIA_HANDLER;
670665
fptr->function_name = zend_string_copy(name);
@@ -687,8 +682,7 @@ static zend_function *zend_test_class_static_method_get(zend_class_entry *ce, ze
687682
}
688683
memset(fptr, 0, sizeof(zend_internal_function));
689684
fptr->type = ZEND_INTERNAL_FUNCTION;
690-
fptr->num_args = sizeof(arginfo_ZendTestClass___call) / sizeof(zend_internal_arg_info);
691-
fptr->arg_info = arginfo_ZendTestClass___call;
685+
fptr->num_args = 0;
692686
fptr->scope = ce;
693687
fptr->fn_flags = ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_STATIC;
694688
fptr->function_name = zend_string_copy(name);

0 commit comments

Comments
 (0)