Skip to content

Commit 093e8b1

Browse files
committed
Added warning message
1 parent a2ba970 commit 093e8b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3787,6 +3787,11 @@ static int accel_finish_startup(void)
37873787
char *(*orig_getenv)(char *name, size_t name_len TSRMLS_DC) = sapi_module.getenv;
37883788
zend_bool old_reset_signals = SIGG(reset);
37893789

3790+
if (UNEXPECTED(file_cache_only)) {
3791+
zend_accel_error(ACCEL_LOG_WARNING, "Preloading doesn't work in \"file_cache_only\" mode");
3792+
return SUCCESS;
3793+
}
3794+
37903795
sapi_module.activate = NULL;
37913796
sapi_module.deactivate = NULL;
37923797
sapi_module.register_server_variables = NULL;

0 commit comments

Comments
 (0)