summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 99389d65cc..f13d3b07d1 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -67,6 +67,7 @@ void init_compiler(CLS_D ELS_DC)
zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_request_startup);
init_resource_list(ELS_C);
CG(unclean_shutdown) = 0;
+ zend_llist_init(&CG(open_files), sizeof(void *), zend_open_file_dtor, 0);
}
@@ -80,6 +81,7 @@ void shutdown_compiler(CLS_D)
zend_hash_apply(CG(function_table), (int (*)(void *)) is_not_internal_function);
zend_hash_apply(CG(class_table), (int (*)(void *)) is_not_internal_class);
zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup);
+ zend_llist_destroy(&CG(open_files));
}