Skip to content

Commit 38e2fd5

Browse files
committed
Fix arg error message
1 parent ea08e2b commit 38e2fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_missing_arg_error(zend_execute_data *
11491149
{
11501150
zend_execute_data *ptr = EX(prev_execute_data);
11511151

1152-
if (arg_num < EX(func)->common.required_num_args) {
1152+
if (arg_num < EX_NUM_ARGS()) {
11531153
zend_argument_error(zend_ce_argument_count_error, arg_num, "not passed");
11541154
return;
11551155
}

0 commit comments

Comments
 (0)