Skip to content

Commit 310b528

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Reset inheritance_cache pointer of zend_class_entry upon serialization (#12401)
2 parents fce5186 + 90f2e76 commit 310b528

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ static void zend_file_cache_serialize_class(zval *zv,
882882

883883
ZEND_MAP_PTR_INIT(ce->static_members_table, NULL);
884884
ZEND_MAP_PTR_INIT(ce->mutable_data, NULL);
885+
886+
ce->inheritance_cache = NULL;
885887
}
886888

887889
static void zend_file_cache_serialize_warnings(

0 commit comments

Comments
 (0)