com php-src: Don't use Opcache with the master test process: win32/build/Makefile win32/build/confutils.js

From: Date: Sun, 10 Mar 2019 12:56:32 +0000
Subject: com php-src: Don't use Opcache with the master test process: win32/build/Makefile win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105052@lists.php.net to get a copy of this message
Commit: 44b7126c6d86a4cde6d3c2b81161041cf0173743 Author: Anatol Belski <ab@php.net> Sun, 10 Mar 2019 13:56:32 +0100 Parents: 591d6b86ab547e9ec7dd00780f907ef377c1b9ee Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=44b7126c6d86a4cde6d3c2b81161041cf0173743 Log: Don't use Opcache with the master test process Additionally, enable opcache.file_cache to mitigate possible reattach failures in the tests. Changed paths: M win32/build/Makefile M win32/build/confutils.js Diff: diff --git a/win32/build/Makefile b/win32/build/Makefile index 233f38c..26b73b6 100644 --- a/win32/build/Makefile +++ b/win32/build/Makefile @@ -193,7 +193,7 @@ run: set-tmp-env $(DEBUGGER_CMD) $(DEBUGGER_ARGS) "$(BUILD_DIR)\php.exe" $(ARGS) !else test: set-tmp-env - $(DEBUGGER_CMD) $(DEBUGGER_ARGS) "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) -d open_basedir= -d output_buffering=0 -d memory_limit=-1 run-tests.php -p "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) $(TESTS) + $(DEBUGGER_CMD) $(DEBUGGER_ARGS) "$(BUILD_DIR)\php.exe" -n -d open_basedir= -d output_buffering=0 -d memory_limit=-1 run-tests.php -p "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) $(TESTS) run: set-tmp-env $(DEBUGGER_CMD) $(DEBUGGER_ARGS) "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) $(ARGS) diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 384cbde..bf1a4b7 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -2044,6 +2044,19 @@ function generate_tmp_php_ini() if (!is_on_exclude_list_for_test_ini(ext_list, ext_name)) { INI.WriteLine(directive + "=php_" + ext_name + ".dll"); + + if ("opcache" == ext_name) { + var dir = get_define("BUILD_DIR") + "\\" + "test_file_cache"; + if (FSO.FolderExists(dir)) { + STDOUT.Write(execute("powershell -Command Remove-Item -path \"\\\\?\\" + dir + "\" -recurse")); + } + FSO.CreateFolder(dir); + + /* Fallback is implied, if filecache is enabled. */ + INI.WriteLine("opcache.file_cache=" + dir); + INI.WriteLine("opcache.enable=1"); + INI.WriteLine("opcache.enable_cli=1"); + } } }

« previous php.cvs (#105052) next »