diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2015-05-06 22:46:56 -0700 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2015-05-06 22:46:56 -0700 |
commit | dd0b602381fad375d8f29a97f25f099be7c9db35 (patch) | |
tree | 03ef01a1b5ebd867c7ae04420f48d64b753296eb /ext/opcache | |
parent | 809616c9da10e749ea3770b4c3b8e4907c7e0992 (diff) | |
download | php-git-dd0b602381fad375d8f29a97f25f099be7c9db35.tar.gz |
Fix build
Diffstat (limited to 'ext/opcache')
-rw-r--r-- | ext/opcache/zend_accelerator_module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 0dd11c5ded..13118a0a4e 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -394,10 +394,12 @@ void zend_accel_override_file_functions(void) { zend_function *old_function; if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).file_override_enabled) { +#ifdef HAVE_OPCACHE_FILE_CACHE if (ZCG(accel_directives).file_cache_only) { zend_accel_error(ACCEL_LOG_WARNING, "file_override_enabled has no effect when file_cache_only is set"); return; } +#endif /* override file_exists */ if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists")-1)) != NULL) { orig_file_exists = old_function->internal_function.handler; |