Skip to content

Commit 5553092

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Reset inheritance_cache pointer of zend_class_entry upon serialization (#12401)
2 parents 06964ab + 310b528 commit 5553092

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
@@ -884,6 +884,8 @@ static void zend_file_cache_serialize_class(zval *zv,
884884

885885
ZEND_MAP_PTR_INIT(ce->static_members_table, NULL);
886886
ZEND_MAP_PTR_INIT(ce->mutable_data, NULL);
887+
888+
ce->inheritance_cache = NULL;
887889
}
888890

889891
static void zend_file_cache_serialize_warnings(

0 commit comments

Comments
 (0)