We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2fc14c + 10e9f6b commit e7de9b2Copy full SHA for e7de9b2
ext/opcache/zend_accelerator_util_funcs.c
@@ -46,8 +46,10 @@ zend_persistent_script* create_persistent_script(void)
46
void free_persistent_script(zend_persistent_script *persistent_script, int destroy_elements)
47
{
48
if (!destroy_elements) {
49
- persistent_script->script.function_table.pDestructor = NULL;
50
- persistent_script->script.class_table.pDestructor = NULL;
+ /* Both the keys and values have been transferred into the global tables.
+ * Set nNumUsed=0 to only deallocate the table, but not destroy any elements. */
51
+ persistent_script->script.function_table.nNumUsed = 0;
52
+ persistent_script->script.class_table.nNumUsed = 0;
53
} else {
54
destroy_op_array(&persistent_script->script.main_op_array);
55
}
0 commit comments