} ZEND_HASH_FOREACH_END();
}
-static void accel_activate(void)
+int accel_activate(INIT_FUNC_ARGS)
{
zend_bool reset_pcre = 0;
if (!ZCG(enabled) || !accel_startup_ok) {
- return;
+ return SUCCESS;
}
/* PHP-5.4 and above return "double", but we use 1 sec precision */
#ifdef HAVE_OPCACHE_FILE_CACHE
if (file_cache_only) {
- return;
+ return SUCCESS;
}
#endif
zend_alter_ini_entry_chars(key, "0", 1, ZEND_INI_SYSTEM, ZEND_INI_STAGE_RUNTIME);
zend_string_release_ex(key, 0);
zend_accel_error(ACCEL_LOG_WARNING, "Can't cache files in chroot() directory with too big inode");
- return;
+ return SUCCESS;
}
}
}
} else if (reset_pcre) {
accel_reset_pcre_cache();
}
+
+ return SUCCESS;
}
int accel_post_deactivate(void)
"Copyright (c) 1999-2018", /* copyright */
accel_startup, /* startup */
NULL, /* shutdown */
- accel_activate, /* per-script activation */
+ NULL, /* per-script activation */
NULL, /* per-script deactivation */
NULL, /* message handler */
NULL, /* op_array handler */
extern char *zps_api_failure_reason;
void accel_shutdown(void);
+int accel_activate(INIT_FUNC_ARGS);
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);