zend_accel_add_key(key, key_length, bucket);
}
zend_shared_alloc_unlock();
+#if 1
+ /* prefer the script already stored in SHM */
+ free_persistent_script(new_persistent_script, 1);
+ *from_shared_memory = 1;
+ return existing_persistent_script;
+#else
return new_persistent_script;
+#endif
}
}
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);