Skip to content

Commit c45c69e

Browse files
committed
opcache: file_cache_read_only - debug log when active 2 (#16484)
1 parent 9510786 commit c45c69e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "zend_accelerator_util_funcs.h"
4747
#include "zend_accelerator_hash.h"
4848
#include "zend_file_cache.h"
49+
#include "zend_system_id.h"
4950
#include "ext/pcre/php_pcre.h"
5051
#include "ext/standard/basic_functions.h"
5152

@@ -3307,7 +3308,7 @@ static zend_result accel_post_startup(void)
33073308
int file_cache_access_mode = 0;
33083309

33093310
if (ZCG(accel_directives).file_cache_read_only) {
3310-
zend_accel_error_noreturn(ACCEL_LOG_INFO, "opcache.file_cache is in read-only mode");
3311+
zend_accel_error(ACCEL_LOG_INFO, "opcache.file_cache is in read-only mode");
33113312

33123313
if (!ZCG(accel_directives).file_cache) {
33133314
accel_startup_ok = false;
@@ -3331,6 +3332,8 @@ static zend_result accel_post_startup(void)
33313332
}
33323333

33333334
if ( ZCG(accel_directives).file_cache ) {
3335+
zend_accel_error(ACCEL_LOG_INFO, "opcache.file_cache running with PHP build ID: %s", zend_system_id);
3336+
33343337
zend_stat_t buf = {0};
33353338

33363339
if (!IS_ABSOLUTE_PATH(ZCG(accel_directives).file_cache, strlen(ZCG(accel_directives).file_cache)) ||

0 commit comments

Comments
 (0)