Skip to content

Commit eb2adac

Browse files
committed
Set opcache ini values manually for test-opcache-mode
1 parent 18fc82e commit eb2adac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extension/BuildPhpExtension/private/Invoke-Tests.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ Function Invoke-Tests {
6464
$tempDirectory = Get-BuildDirectory $currentDirectory
6565
$env:TEMP=$tempDirectory
6666
$env:TMP=$tempDirectory
67-
$env:OPCACHE = $opcacheMode
6867
$test_runner_args += '--temp-source ' + $tempDirectory;
6968
$test_runner_args += '--temp-target ' + $tempDirectory;
7069
$opcache_args = @()
@@ -73,6 +72,10 @@ Function Invoke-Tests {
7372
$opcache_args += "-d opcache.enable=1"
7473
$opcache_args += "-d opcache.enable_cli=1"
7574
$opcache_args += "-d opcache.optimization_level=1"
75+
} else {
76+
$opcache_args += "-d opcache.enable=0"
77+
$opcache_args += "-d opcache.enable_cli=0"
78+
$opcache_args += "-d opcache.optimization_level=0"
7679
}
7780
$phpExpression = @(
7881
'php',

0 commit comments

Comments
 (0)