]> granicus.if.org Git - php/commitdiff
Allow opcache_compile_file() to perform compilation even if opcache is disabled.
authorDmitry Stogov <dmitry@zend.com>
Tue, 28 Aug 2018 21:42:38 +0000 (00:42 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 28 Aug 2018 21:42:38 +0000 (00:42 +0300)
ext/opcache/zend_accelerator_module.c

index e2c73c61ed7736c6799a0ec8b087fd70fbf3beba..b4db8cb1c8aead94f92f980cfb95234383de5a84 100644 (file)
@@ -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;