File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function Get-PhpBuildDetails {
15
15
process {
16
16
if ($Config.php_version -eq ' master' -or $Config.php_version -eq ' 8.5' ) {
17
17
$baseUrl = $fallbackBaseUrl = " https://github.com/shivammathur/php-builder-windows/releases/download/master"
18
- $PhpSemver = $PhpVersion
18
+ $PhpSemver = ' master '
19
19
} else {
20
20
foreach ($releaseState in @ (" releases" , " qa" )) {
21
21
$baseUrl = " https://downloads.php.net/~windows/$releaseState "
Original file line number Diff line number Diff line change @@ -40,15 +40,17 @@ function Get-PhpBuild {
40
40
throw " PHP version $PhpVersion is not supported."
41
41
}
42
42
}
43
+ $versionInUrl = $PhpVersion
43
44
if ($PhpVersion -eq ' master' -or $PhpVersion -eq ' 8.5' ) {
44
45
$fallbackBaseUrl = $baseUrl = " https://github.com/shivammathur/php-builder-windows/releases/download/master"
46
+ $versionInUrl = " master"
45
47
} else {
46
48
$releaseState = if ($PhpVersion -match " [a-z]" ) {" qa" } else {" releases" }
47
49
$baseUrl = " https://downloads.php.net/~windows/$releaseState "
48
50
$fallbackBaseUrl = " https://downloads.php.net/~windows/$releaseState /archives"
49
51
}
50
52
$tsPart = if ($Ts -eq " nts" ) {" nts-Win32" } else {" Win32" }
51
- $binZipFile = " php-$PhpVersion -$tsPart -$VsVersion -$Arch .zip"
53
+ $binZipFile = " php-$versionInUrl -$tsPart -$VsVersion -$Arch .zip"
52
54
$binUrl = " $baseUrl /$binZipFile "
53
55
$fallBackUrl = " $fallbackBaseUrl /$binZipFile "
54
56
Original file line number Diff line number Diff line change @@ -22,14 +22,16 @@ function Get-PhpTestPack {
22
22
process {
23
23
Add-Type - Assembly " System.IO.Compression.Filesystem"
24
24
25
+ $versionInUrl = $PhpVersion
25
26
if ($PhpVersion -eq ' master' -or $PhpVersion -eq ' 8.5' ) {
26
27
$fallbackBaseUrl = $baseUrl = " https://github.com/shivammathur/php-builder-windows/releases/download/master"
28
+ $versionInUrl = " master"
27
29
} else {
28
30
$releaseState = if ($PhpVersion -match " [a-z]" ) {" qa" } else {" releases" }
29
31
$baseUrl = " https://downloads.php.net/~windows/$releaseState "
30
32
$fallbackBaseUrl = " https://downloads.php.net/~windows/$releaseState /archives"
31
33
}
32
- $testZipFile = " php-test-pack-$PhpVersion .zip"
34
+ $testZipFile = " php-test-pack-$versionInUrl .zip"
33
35
$testUrl = " $baseUrl /$testZipFile "
34
36
$fallBackUrl = " $fallbackBaseUrl /$testZipFile "
35
37
You can’t perform that action at this time.
0 commit comments