}
#endif
+int accel_post_deactivate(void)
+{
+ if (!ZCG(enabled) || !accel_startup_ok) {
+ return SUCCESS;
+ }
+
+ zend_shared_alloc_safe_unlock(); /* be sure we didn't leave cache locked */
+ accel_unlock_all();
+ ZCG(counted) = 0;
+
+ return SUCCESS;
+}
+
static void accel_deactivate(void)
{
/* ensure that we restore function_table and class_table
return;
}
- zend_shared_alloc_safe_unlock(); /* be sure we didn't leave cache locked */
- accel_unlock_all();
- ZCG(counted) = 0;
-
#if !ZEND_DEBUG
if (ZCG(accel_directives).fast_shutdown && is_zend_mm()) {
zend_accel_fast_shutdown();
extern char *zps_api_failure_reason;
void accel_shutdown(void);
+int accel_post_deactivate(void);
void zend_accel_schedule_restart(zend_accel_restart_reason reason);
void zend_accel_schedule_restart_if_necessary(zend_accel_restart_reason reason);
accel_time_t zend_get_file_handle_timestamp(zend_file_handle *file_handle, size_t *size);
NULL,
zend_accel_info,
ACCELERATOR_VERSION "FE",
- STANDARD_MODULE_PROPERTIES
+ NO_MODULE_GLOBALS,
+ accel_post_deactivate,
+ STANDARD_MODULE_PROPERTIES_EX
};
int start_accel_module(void)