Prefer already cached version of the script

This commit is contained in:
Dmitry Stogov 2020-05-20 23:04:34 +03:00
parent 3b62e8b9ab
commit 95248491af
2 changed files with 9 additions and 0 deletions

View file

@ -64,6 +64,8 @@ void free_persistent_script(zend_persistent_script *persistent_script, int destr
if (!destroy_elements) {
persistent_script->script.function_table.pDestructor = NULL;
persistent_script->script.class_table.pDestructor = NULL;
} else {
destroy_op_array(&persistent_script->script.main_op_array);
}
zend_hash_destroy(&persistent_script->script.function_table);