Skip to content

Commit 167e45e

Browse files
committed
Enable opcache.record_warnings when opcache.file_cache is set, in the generated tmp-php.ini
1 parent fd729cb commit 167e45e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/scripts/windows/test_task.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ mkdir %PHP_BUILD_DIR%\test_file_cache
128128
rem generate php.ini
129129
echo extension_dir=%PHP_BUILD_DIR% > %PHP_BUILD_DIR%\php.ini
130130
echo opcache.file_cache=%PHP_BUILD_DIR%\test_file_cache >> %PHP_BUILD_DIR%\php.ini
131+
echo opcache.record_warnings=1 >> %PHP_BUILD_DIR%\php.ini
131132
if "%OPCACHE%" equ "1" echo zend_extension=php_opcache.dll >> %PHP_BUILD_DIR%\php.ini
132133
rem work-around for some spawned PHP processes requiring OpenSSL and sockets
133134
echo extension=php_openssl.dll >> %PHP_BUILD_DIR%\php.ini

win32/build/confutils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,7 @@ function generate_tmp_php_ini()
20542054

20552055
/* Fallback is implied, if filecache is enabled. */
20562056
INI.WriteLine("opcache.file_cache=" + dir);
2057+
INI.WriteLine("opcache.record_warnings=1");
20572058
INI.WriteLine("opcache.enable=1");
20582059
INI.WriteLine("opcache.enable_cli=1");
20592060
}

0 commit comments

Comments
 (0)