Skip to content

Commit c7a9190

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix incorrect inheritance cache update (#10719)
2 parents 81abd8d + 2e3fc8c commit c7a9190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,9 +2358,9 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
23582358
SHM_UNPROTECT();
23592359
zend_shared_alloc_lock();
23602360

2361-
entry = ce->inheritance_cache;
2361+
entry = proto->inheritance_cache;
23622362
while (entry) {
2363-
entry = zend_accel_inheritance_cache_find(entry, ce, parent, traits_and_interfaces, &needs_autoload);
2363+
entry = zend_accel_inheritance_cache_find(entry, proto, parent, traits_and_interfaces, &needs_autoload);
23642364
if (entry) {
23652365
if (!needs_autoload) {
23662366
zend_shared_alloc_unlock();

0 commit comments

Comments
 (0)