mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix incorrect inheritance cache update (#10719)
This commit is contained in:
commit
c7a9190124
@ -2358,9 +2358,9 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
|
||||
SHM_UNPROTECT();
|
||||
zend_shared_alloc_lock();
|
||||
|
||||
entry = ce->inheritance_cache;
|
||||
entry = proto->inheritance_cache;
|
||||
while (entry) {
|
||||
entry = zend_accel_inheritance_cache_find(entry, ce, parent, traits_and_interfaces, &needs_autoload);
|
||||
entry = zend_accel_inheritance_cache_find(entry, proto, parent, traits_and_interfaces, &needs_autoload);
|
||||
if (entry) {
|
||||
if (!needs_autoload) {
|
||||
zend_shared_alloc_unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user