Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/opcache/ZendAccelerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -2400,6 +2400,12 @@ static zend_class_entry* zend_accel_inheritance_cache_add(zend_class_entry *ce,
SHM_PROTECT();
if (!needs_autoload) {
zend_map_ptr_extend(ZCSG(map_ptr_last));
/* Another thread cached this class first; our transient linked
* copy is now unreachable. The MISS path frees it inside persist
* (zend_shared_memdup_free), so the HIT path must free it here. */
zval zv_ce;
ZVAL_PTR(&zv_ce, ce);
destroy_zend_class(&zv_ce);
return entry->ce;
} else {
return NULL;
Expand Down
Loading