Skip to content

Commit d423910

Browse files
committed
DEBUG: remove arginfo / zpp check bypass from fake closures
1 parent 57b362b commit d423910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,8 @@ static zend_never_inline ZEND_ATTRIBUTE_UNUSED bool zend_verify_internal_arg_typ
12101210
* trust that arginfo matches what is enforced by zend_parse_parameters. */
12111211
ZEND_API bool zend_internal_call_should_throw(zend_function *fbc, zend_execute_data *call)
12121212
{
1213-
if (fbc->internal_function.handler == ZEND_FN(pass) || (fbc->internal_function.fn_flags | ZEND_ACC_FAKE_CLOSURE)) {
1214-
/* Be lenient about the special pass function and about fake closures. */
1213+
if (fbc->internal_function.handler == ZEND_FN(pass)) {
1214+
/* Be lenient about the special pass function. */
12151215
return 0;
12161216
}
12171217

0 commit comments

Comments
 (0)