Skip to content

Commit 16d25da

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Fix op2 caching for static properties Split expression
2 parents 323c9f4 + 67318e9 commit 16d25da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,8 +3617,8 @@ static zend_always_inline zval* zend_fetch_static_property_address(zend_property
36173617
if (opline->op1_type == IS_CONST
36183618
&& (opline->op2_type == IS_CONST
36193619
|| (opline->op2_type == IS_UNUSED
3620-
&& (opline->op2.num == ZEND_FETCH_CLASS_SELF
3621-
|| opline->op2.num == ZEND_FETCH_CLASS_PARENT)))
3620+
&& ((opline->op2.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF
3621+
|| (opline->op2.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_PARENT)))
36223622
&& EXPECTED(CACHED_PTR(cache_slot + sizeof(void *)) != NULL)) {
36233623
result = CACHED_PTR(cache_slot + sizeof(void *));
36243624
property_info = CACHED_PTR(cache_slot + sizeof(void *) * 2);

0 commit comments

Comments
 (0)