Skip to content

Commit fb2f8be

Browse files
committed
Update URL of PECL binaries
1 parent d040a6f commit fb2f8be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PhpManager/private/Get-PeclArchiveUrl.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
$result = ''
5151
}
5252
process {
53-
# https://github.com/php/web-pecl/blob/467593b248d4603a3dee2ecc3e61abfb7434d24d/include/pear-win-package.php
53+
# https://github.com/php/web-pecl/blob/d46cbd98fc5ce90ec2a45bef5ee4f6c9db3898b7/src/PackageDll.php
5454
$handleLC = $PackageHandle.ToLowerInvariant();
5555
$rxMatch = '/php_' + [regex]::Escape($PackageHandle)
5656
$rxMatch += '-' + [regex]::Escape($PackageVersion)
@@ -60,9 +60,9 @@
6060
$rxMatch += '-' + [regex]::Escape($PhpVersion.Architecture)
6161
$rxMatch += '\.zip$'
6262
$urls = @()
63-
$urls += "https://windows.php.net/downloads/pecl/releases/$handleLC/$PackageVersion"
63+
$urls += "https://downloads.php.net/~windows/pecl/releases/$handleLC/$PackageVersion/"
6464
if ($MinimumStability -ne $Script:PEARSTATE_STABLE) {
65-
$urls += "https://windows.php.net/downloads/pecl/snaps/$handleLC/$PackageVersion"
65+
$urls += "https://downloads.php.net/~windows/pecl/snaps/$handleLC/$PackageVersion/"
6666
}
6767
foreach ($url in $urls) {
6868
try {

0 commit comments

Comments
 (0)