File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,11 @@ Function Add-PhpDependencies {
14
14
}
15
15
process {
16
16
$phpBaseUrl = ' https://downloads.php.net/~windows/php-sdk/deps'
17
- $phpSeries = Invoke-WebRequest - Uri " $phpBaseUrl /series/packages-$ ( $Config.php_version ) -$ ( $Config.vs_version ) -$ ( $Config.arch ) -staging.txt"
18
- $seriesFiles = $phpSeries.Content -Split " [\r\n]+"
17
+ $phpSeries = Invoke-WebRequest - Uri " $phpBaseUrl /$ ( $Config.vs_version ) /$ ( $Config.arch ) "
19
18
$no_matches = @ ()
20
19
foreach ($library in $Config.php_libraries ) {
21
20
$installed = $false
22
- foreach ($file in $seriesFiles ) {
21
+ foreach ($file in $phpSeries .Links.Href ) {
23
22
if ($file -match " ^$library " ) {
24
23
Invoke-WebRequest " $phpBaseUrl /$ ( $Config.vs_version ) /$ ( $Config.arch ) /$file " - OutFile $library
25
24
Expand-Archive $library " ../deps"
Original file line number Diff line number Diff line change @@ -118,13 +118,13 @@ Function Get-ExtensionConfig {
118
118
}
119
119
120
120
if ($Libraries.Count -gt 0 ) {
121
- $phpSeries = ( Invoke-WebRequest - Uri " https://downloads.php.net/~windows/php-sdk/deps/series/packages- $PhpVersion - $ VsVersion- $Arch -staging.txt " ).Content
121
+ $phpSeries = Invoke-WebRequest - Uri " https://downloads.php.net/~windows/php-sdk/deps/$ VsVersion/ $Arch "
122
122
$extensionSeries = Invoke-WebRequest - Uri " https://downloads.php.net/~windows/pecl/deps"
123
123
$extensionArchivesSeries = Invoke-WebRequest - Uri " https://downloads.php.net/~windows/pecl/deps/archives"
124
124
}
125
125
$Libraries | Select-Object - Unique | ForEach-Object {
126
126
if ($null -ne $_ -and -not ([string ]::IsNullOrWhiteSpace($_ ))) {
127
- if ($phpSeries.Contains ($_ ) -and -not ($config.php_libraries.Contains ($_ ))) {
127
+ if ($phpSeries.Content.ToLower (). Contains($_ ) -and -not ($config.php_libraries.Contains ($_ ))) {
128
128
$config.php_libraries += $_
129
129
} elseif (($extensionSeries.Content + $extensionArchivesSeries.Content ).ToLower().Contains($_.ToLower ()) -and -not ($config.extension_libraries.Contains ($_ ))) {
130
130
$lib = Get-PeclLibraryZip - Library $_ - PhpVersion $PhpVersion - VsVersion $VsVersion - Arch $Arch - ExtensionSeries $extensionSeries
You can’t perform that action at this time.
0 commit comments