We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b9ae43 + 0bea828 commit 9400f81Copy full SHA for 9400f81
extension/BuildPhpExtension/private/Invoke-Tests.ps1
@@ -87,7 +87,10 @@ Function Invoke-Tests {
87
$test_runner_args += '--temp-target ' + $tempDirectory;
88
$opcache_args = @()
89
if($opcacheMode -eq 'on') {
90
- $opcache_args += "-d zend_extension=$php_dir\ext\php_opcache.dll"
+ # Only use the DLL for PHP < 8.5.0 – from 8.5.0 it's built-in
91
+ if ([version]$Config.php_version -lt [version]'8.5.0') {
92
+ $opcache_args += "-d zend_extension=$php_dir\ext\php_opcache.dll"
93
+ }
94
$opcache_args += "-d opcache.enable=1"
95
$opcache_args += "-d opcache.enable_cli=1"
96
$opcache_args += "-d opcache.optimization_level=1"
@@ -126,4 +129,4 @@ Function Invoke-Tests {
126
129
}
127
130
end {
128
131
-}
132
+}
0 commit comments