com php-src: Allow opcache_compile_file() to perfor m compilation even if opcache is disabled.: e xt/opcache/zend_accelerator_module.c
| From: | Dmitry Stogov | Date: | Tue, 28 Aug 2018 21:42:38 +0000 |
| Subject: | com php-src: Allow opcache_compile_file() to perfor m compilation even if opcache is disabled.: e xt/opcache/zend_accelerator_module.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102909@lists.php.net to get a copy of this message | ||
Commit: 03fc3d85d8a0624c7a1171576db9cf44575763b0
Author: Dmitry Stogov <dmitry@zend.com> Wed, 29 Aug 2018 00:42:38 +0300
Parents: cd9f0a22fc0fd51e86043246bb4e12d39becdcd9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=03fc3d85d8a0624c7a1171576db9cf44575763b0
Log:
Allow opcache_compile_file() to perform compilation even if opcache is disabled.
Changed paths:
M ext/opcache/zend_accelerator_module.c
Diff:
diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c
index e2c73c6..b4db8cb 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;