Skip to content

Commit a2fc14c

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix BIND_STATIC may_throw check
2 parents 27976d7 + 1b376b0 commit a2fc14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4771,7 +4771,7 @@ ZEND_API int zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op,
47714771
/* Destructor may throw. */
47724772
return 1;
47734773
} else {
4774-
zval *value = (zval*)((char*)op_array->static_variables + (opline->extended_value & ~(ZEND_BIND_REF|ZEND_BIND_IMPLICIT|ZEND_BIND_EXPLICIT)));
4774+
zval *value = (zval*)((char*)op_array->static_variables->arData + (opline->extended_value & ~(ZEND_BIND_REF|ZEND_BIND_IMPLICIT|ZEND_BIND_EXPLICIT)));
47754775
/* May throw if initializer is CONSTANT_AST. */
47764776
return Z_TYPE_P(value) == IS_CONSTANT_AST;
47774777
}

0 commit comments

Comments
 (0)