Skip to content

Commit c07a0db

Browse files
committed
Don't miss warning messages
1 parent 205b6b8 commit c07a0db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zend/zend_execute.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ static inline int zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_n
636636

637637
need_msg = zend_verify_arg_class_kind(cur_arg_info, fetch_type, &class_name, &ce TSRMLS_CC);
638638
zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "none", "", NULL TSRMLS_CC);
639+
return 0;
639640
} else if (cur_arg_info->type_hint) {
640641
if (cur_arg_info->type_hint == IS_ARRAY) {
641642
zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "be of the type array", "", "none", "", NULL TSRMLS_CC);
@@ -646,8 +647,9 @@ static inline int zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_n
646647
zend_error(E_ERROR, "Unknown typehint");
647648
#endif
648649
}
650+
return 0;
649651
}
650-
return 0;
652+
return 1;
651653
}
652654

653655
static void zend_verify_missing_arg(zend_execute_data *execute_data, uint32_t arg_num TSRMLS_DC)

0 commit comments

Comments
 (0)