com php-src: Fix opcache build without JIT: ext/opcache/zend_ file_cache.c
| From: | Nikita Popov | Date: | Thu, 11 Apr 2019 10:52:50 +0000 |
| Subject: | com php-src: Fix opcache build without JIT: ext/opcache/zend_ file_cache.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105648@lists.php.net to get a copy of this message | ||
Commit: 6dd745042750993ade9426637a2cae71d8078b8d
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 11 Apr 2019 12:52:50 +0200
Parents: 47c74e780de1b51f65473ba9f57b98ff3a96c1d8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6dd745042750993ade9426637a2cae71d8078b8d
Log:
Fix opcache build without JIT
Changed paths:
M ext/opcache/zend_file_cache.c
Diff:
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c
index 1878459..f9c8fde 100644
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@ -902,10 +902,12 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm)
#endif
void *mem, *buf;
+#ifdef HAVE_JIT
/* FIXME: dump jited codes out to file cache? */
if (ZCG(accel_directives).jit) {
return FAILURE;
}
+#endif
filename = zend_file_cache_get_bin_file_path(script->script.filename);