Skip to content

Commit 2e3fc8c

Browse files
authored
Fix incorrect inheritance cache update (#10719)
1 parent f440911 commit 2e3fc8c

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
@@ -2353,9 +2353,9 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
23532353
SHM_UNPROTECT();
23542354
zend_shared_alloc_lock();
23552355

2356-
entry = ce->inheritance_cache;
2356+
entry = proto->inheritance_cache;
23572357
while (entry) {
2358-
entry = zend_accel_inheritance_cache_find(entry, ce, parent, traits_and_interfaces, &needs_autoload);
2358+
entry = zend_accel_inheritance_cache_find(entry, proto, parent, traits_and_interfaces, &needs_autoload);
23592359
if (entry) {
23602360
if (!needs_autoload) {
23612361
zend_shared_alloc_unlock();

0 commit comments

Comments
 (0)