We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 323c9f4 + 67318e9 commit 16d25daCopy full SHA for 16d25da
Zend/zend_execute.c
@@ -3617,8 +3617,8 @@ static zend_always_inline zval* zend_fetch_static_property_address(zend_property
3617
if (opline->op1_type == IS_CONST
3618
&& (opline->op2_type == IS_CONST
3619
|| (opline->op2_type == IS_UNUSED
3620
- && (opline->op2.num == ZEND_FETCH_CLASS_SELF
3621
- || opline->op2.num == ZEND_FETCH_CLASS_PARENT)))
+ && ((opline->op2.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF
+ || (opline->op2.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_PARENT)))
3622
&& EXPECTED(CACHED_PTR(cache_slot + sizeof(void *)) != NULL)) {
3623
result = CACHED_PTR(cache_slot + sizeof(void *));
3624
property_info = CACHED_PTR(cache_slot + sizeof(void *) * 2);
0 commit comments