mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
Also destroy classes in reverse order with ZTS
This commit is contained in:
+2
-1
@@ -730,7 +730,8 @@ static void compiler_globals_dtor(zend_compiler_globals *compiler_globals) /* {{
|
||||
free(compiler_globals->function_table);
|
||||
}
|
||||
if (compiler_globals->class_table != GLOBAL_CLASS_TABLE) {
|
||||
zend_hash_destroy(compiler_globals->class_table);
|
||||
/* Child classes may reuse structures from parent classes, so destroy in reverse order. */
|
||||
zend_hash_graceful_reverse_destroy(compiler_globals->class_table);
|
||||
free(compiler_globals->class_table);
|
||||
}
|
||||
if (compiler_globals->auto_globals != GLOBAL_AUTO_GLOBALS_TABLE) {
|
||||
|
||||
Reference in New Issue
Block a user