/* {{{ proto void accelerator_reset() Request that the contents of the opcode cache to be reset */ static ZEND_FUNCTION(opcache_reset) { if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } if (!validate_api_restriction()) { RETURN_FALSE; } if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { RETURN_FALSE; } zend_accel_schedule_restart(ACCEL_RESTART_USER); RETURN_TRUE; }
/* {{{ proto void accelerator_reset() Request that the contents of the opcode cache to be reset */ static ZEND_FUNCTION(opcache_reset) { if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } if (!validate_api_restriction()) { RETURN_FALSE; } if ((!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) #if ENABLE_FILE_CACHE_FALLBACK && !fallback_process #endif ) { RETURN_FALSE; } zend_accel_schedule_restart(ACCEL_RESTART_USER); RETURN_TRUE; }