Skip to content

Commit cbba2bf

Browse files
committed
Fix loading opcache for PHP 8.5
1 parent aebe857 commit cbba2bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extension/BuildPhpExtension/private/Invoke-Tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ Function Invoke-Tests {
8787
$test_runner_args += '--temp-target ' + $tempDirectory;
8888
$opcache_args = @()
8989
if($opcacheMode -eq 'on') {
90-
# 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') {
90+
if (Test-Path $php_dir\ext\php_opcache.dll) {
9291
$opcache_args += "-d zend_extension=$php_dir\ext\php_opcache.dll"
9392
}
9493
$opcache_args += "-d opcache.enable=1"

0 commit comments

Comments
 (0)