Skip to content

Commit dd0b602

Browse files
committed
Fix build
1 parent 809616c commit dd0b602

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,12 @@ void zend_accel_override_file_functions(void)
394394
{
395395
zend_function *old_function;
396396
if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).file_override_enabled) {
397+
#ifdef HAVE_OPCACHE_FILE_CACHE
397398
if (ZCG(accel_directives).file_cache_only) {
398399
zend_accel_error(ACCEL_LOG_WARNING, "file_override_enabled has no effect when file_cache_only is set");
399400
return;
400401
}
402+
#endif
401403
/* override file_exists */
402404
if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists")-1)) != NULL) {
403405
orig_file_exists = old_function->internal_function.handler;

0 commit comments

Comments
 (0)