Skip to content

Commit 44e5c04

Browse files
committed
Fix incorrect inheritance cache update (#10719)
1 parent adc5edd commit 44e5c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/ZendAccelerator.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2354,9 +2354,9 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
23542354
SHM_UNPROTECT();
23552355
zend_shared_alloc_lock();
23562356

2357-
entry = ce->inheritance_cache;
2357+
entry = proto->inheritance_cache;
23582358
while (entry) {
2359-
entry = zend_accel_inheritance_cache_find(entry, ce, parent, traits_and_interfaces, &needs_autoload);
2359+
entry = zend_accel_inheritance_cache_find(entry, proto, parent, traits_and_interfaces, &needs_autoload);
23602360
if (entry) {
23612361
if (!needs_autoload) {
23622362
zend_shared_alloc_unlock();

0 commit comments

Comments
 (0)