Skip to content

Commit

Permalink
Set opcache ini values manually for test-opcache-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Oct 28, 2024
1 parent 18fc82e commit eb2adac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/BuildPhpExtension/private/Invoke-Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Function Invoke-Tests {
$tempDirectory = Get-BuildDirectory $currentDirectory
$env:TEMP=$tempDirectory
$env:TMP=$tempDirectory
$env:OPCACHE = $opcacheMode
$test_runner_args += '--temp-source ' + $tempDirectory;
$test_runner_args += '--temp-target ' + $tempDirectory;
$opcache_args = @()
Expand All @@ -73,6 +72,10 @@ Function Invoke-Tests {
$opcache_args += "-d opcache.enable=1"
$opcache_args += "-d opcache.enable_cli=1"
$opcache_args += "-d opcache.optimization_level=1"
} else {
$opcache_args += "-d opcache.enable=0"
$opcache_args += "-d opcache.enable_cli=0"
$opcache_args += "-d opcache.optimization_level=0"
}
$phpExpression = @(
'php',
Expand Down

0 comments on commit eb2adac

Please sign in to comment.