Skip to content

Commit e5f007e

Browse files
committed
fix jit
1 parent a2e21e4 commit e5f007e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ static bool ZEND_FASTCALL zend_jit_verify_arg_slow(zval *arg, zend_arg_info *arg
19021902
const zend_op *opline = EX(opline);
19031903
void **cache_slot = CACHE_ADDR(opline->extended_value);
19041904
bool ret = zend_check_user_type_slow(
1905-
&arg_info->type, arg, /* ref */ NULL, cache_slot, /* is_return_type */ false);
1905+
&arg_info->type, arg_info->type_tree, arg, /* ref */ NULL, cache_slot, /* is_return_type */ false);
19061906
if (UNEXPECTED(!ret)) {
19071907
zend_verify_arg_error(EX(func), arg_info, opline->op1.num, arg);
19081908
return 0;
@@ -1919,7 +1919,7 @@ static void ZEND_FASTCALL zend_jit_verify_return_slow(zval *arg, const zend_op_a
19191919
}
19201920
}
19211921
if (UNEXPECTED(!zend_check_user_type_slow(
1922-
&arg_info->type, arg, /* ref */ NULL, cache_slot, /* is_return_type */ true))) {
1922+
&arg_info->type, arg_info->type_tree, arg, /* ref */ NULL, cache_slot, /* is_return_type */ true))) {
19231923
zend_verify_return_error((zend_function*)op_array, arg);
19241924
}
19251925
}

0 commit comments

Comments
 (0)