From: Dmitry Stogov Date: Tue, 28 Aug 2018 21:42:38 +0000 (+0300) Subject: Allow opcache_compile_file() to perform compilation even if opcache is disabled. X-Git-Tag: php-7.4.0alpha1~2037 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03fc3d85d8a0624c7a1171576db9cf44575763b0;p=php Allow opcache_compile_file() to perform compilation even if opcache is disabled. --- diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index e2c73c61ed..b4db8cb1c8 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -805,11 +805,6 @@ static ZEND_FUNCTION(opcache_compile_file) return; } - if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { - zend_error(E_NOTICE, ACCELERATOR_PRODUCT_NAME " seems to be disabled, can't compile file"); - RETURN_FALSE; - } - handle.filename = script_name; handle.free_filename = 0; handle.opened_path = NULL;