1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Fixed incorrect type guard

This commit is contained in:
Dmitry Stogov
2020-06-25 21:59:48 +03:00
parent 4e7cac810f
commit 7e940823d5

View File

@@ -11524,7 +11524,7 @@ static zend_bool zend_jit_fetch_reference(dasm_State **Dst, const zend_op *oplin
var_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FCARG1a, 0);
*var_addr_ptr = var_addr;
var_type &= ~IS_TRACE_REFERENCE;
var_type &= ~(IS_TRACE_REFERENCE|IS_TRACE_INDIRECT);
if (add_type_guard
&& var_type != IS_UNKNOWN
&& (var_info & (MAY_BE_ANY|MAY_BE_UNDEF)) != (1 << var_type)) {