Skip to content

Commit 1b376b0

Browse files
committed
Fix BIND_STATIC may_throw check
This is supposed to index into arData, not the HashTable itself.
1 parent 753645a commit 1b376b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4559,7 +4559,7 @@ int zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op, const ze
45594559
/* Destructor may throw. */
45604560
return 1;
45614561
} else {
4562-
zval *value = (zval*)((char*)op_array->static_variables + (opline->extended_value & ~(ZEND_BIND_REF|ZEND_BIND_IMPLICIT)));
4562+
zval *value = (zval*)((char*)op_array->static_variables->arData + (opline->extended_value & ~(ZEND_BIND_REF|ZEND_BIND_IMPLICIT)));
45634563
/* May throw if initializer is CONSTANT_AST. */
45644564
return Z_TYPE_P(value) == IS_CONSTANT_AST;
45654565
}

0 commit comments

Comments
 (0)