Skip to content

Commit 6a2659c

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix BIND_STATIC may_throw check
2 parents 082c5b8 + a2fc14c commit 6a2659c

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
@@ -4799,7 +4799,7 @@ ZEND_API int zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op,
47994799
/* Destructor may throw. */
48004800
return 1;
48014801
} else {
4802-
zval *value = (zval*)((char*)op_array->static_variables + (opline->extended_value & ~(ZEND_BIND_REF|ZEND_BIND_IMPLICIT|ZEND_BIND_EXPLICIT)));
4802+
zval *value = (zval*)((char*)op_array->static_variables->arData + (opline->extended_value & ~(ZEND_BIND_REF|ZEND_BIND_IMPLICIT|ZEND_BIND_EXPLICIT)));
48034803
/* May throw if initializer is CONSTANT_AST. */
48044804
return Z_TYPE_P(value) == IS_CONSTANT_AST;
48054805
}

0 commit comments

Comments
 (0)