Skip to content

Commit dcf2810

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix Zend/tests/type_declarations/variance/class_order_autoload1.phpt test failre introduced by 44e5c04
2 parents 23ce342 + 18b43d2 commit dcf2810

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,14 +2357,14 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
23572357
while (entry) {
23582358
entry = zend_accel_inheritance_cache_find(entry, proto, parent, traits_and_interfaces, &needs_autoload);
23592359
if (entry) {
2360+
zend_shared_alloc_unlock();
2361+
SHM_PROTECT();
23602362
if (!needs_autoload) {
2361-
zend_shared_alloc_unlock();
2362-
SHM_PROTECT();
2363-
23642363
zend_map_ptr_extend(ZCSG(map_ptr_last));
23652364
return entry->ce;
2365+
} else {
2366+
return NULL;
23662367
}
2367-
ZEND_ASSERT(0); // entry = entry->next; // This shouldn't be possible ???
23682368
}
23692369
}
23702370

0 commit comments

Comments
 (0)