mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 10:25:41 +00:00
Close all files and resources before before destroying object storage, because resources may point to objects. (THIS CHANGE MAY BE DANGEROUS)
This commit is contained in:
1 parent
98350cdcea
commit
91ed685e26
2 files changed
+8
-1
No files matched your search
@@ -251,7 +251,6 @@ void shutdown_compiler(TSRMLS_D) /* {{{ */
|
||||
zend_stack_destroy(&CG(declare_stack));
|
||||
zend_stack_destroy(&CG(list_stack));
|
||||
zend_hash_destroy(&CG(filenames_table));
|
||||
zend_llist_destroy(&CG(open_files));
|
||||
zend_hash_destroy(&CG(const_filenames));
|
||||
zend_stack_destroy(&CG(context_stack));
|
||||
}
|
||||
|
||||
@@ -312,6 +312,14 @@ void shutdown_executor(TSRMLS_D) /* {{{ */
|
||||
}
|
||||
} zend_end_try();
|
||||
|
||||
zend_try {
|
||||
zend_llist_destroy(&CG(open_files));
|
||||
} zend_end_try();
|
||||
|
||||
zend_try {
|
||||
zend_close_rsrc_list(&EG(regular_list) TSRMLS_CC);
|
||||
} zend_end_try();
|
||||
|
||||
zend_try {
|
||||
zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC);
|
||||
|
||||
|
||||
Reference in new issue
Block a user