Skip to content

Commit 805932c

Browse files
authored
Add support for Visual C++ version 18 (Visual Studio 2026) (#139)
1 parent 4762932 commit 805932c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

PhpManager/private/Install-PhpFromUrl.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
15 { $redistName = '2017' } # PHP 7.2, PHP 7.3
7070
16 { $redistName = '2019' } # PHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3
7171
17 { $redistName = '2022' } # PHP 8.4, PHP 8.5
72+
18 { $redistName = '2026' } # PHP 8.6
7273
default {
7374
throw ('The Visual C++ ' + $PhpVersion.VCVersion + ' Redistributable seems to be missing: you have to install it manually (we can''t recognize its version)')
7475
}

PhpManager/private/PhpVersion.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ echo PHP_VERSION, chr(9), PHP_INT_SIZE * 8, chr(9), $matches[1];
339339
'2017' { $data.VCVersion = 15 }
340340
'2019' { $data.VCVersion = 16 }
341341
'2022' { $data.VCVersion = 17 }
342+
'2026' { $data.VCVersion = 18 }
342343
default { throw "Failed to recognize VCVersion from Visual C++ $vcYear" }
343344
}
344345
}

PhpManager/public/Get-PhpAvailableVersion.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
}
103103
}
104104
if ($true) {
105-
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-nts-windows-vs16-x64.zip' -ReleaseState $State
106-
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-ts-windows-vs16-x64.zip' -ReleaseState $State
107-
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-nts-windows-vs16-x86.zip' -ReleaseState $State
108-
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-ts-windows-vs16-x86.zip' -ReleaseState $State
105+
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-nts-windows-vs18-x64.zip' -ReleaseState $State
106+
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-ts-windows-vs18-x64.zip' -ReleaseState $State
107+
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-nts-windows-vs18-x86.zip' -ReleaseState $State
108+
$result += Get-PhpVersionFromUrl -Url 'https://github.com/shivammathur/php-builder-windows/releases/download/master/php-master-ts-windows-vs18-x86.zip' -ReleaseState $State
109109
}
110110
}
111111
default {

0 commit comments

Comments
 (0)