Skip to content

Commit 03111be

Browse files
authored
Merge pull request #116 from mlocati/pecl-url
Update URL of PECL binaries
2 parents 9156755 + fb2f8be commit 03111be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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 {

PhpManager/private/Get-PhpVersionFromApiVersion.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ function Get-PhpVersionFromApiVersion {
1717
}
1818
switch ($ApiVersion) {
1919
# https://github.com/php/php-src/blob/php-8.3.0RC1/Zend/zend_modules.h#L34
20-
# https://github.com/php/php-src/blob/php-8.3.6/Zend/zend_modules.h#L34
20+
# https://github.com/php/php-src/blob/php-8.3.7/Zend/zend_modules.h#L34
2121
20230831 {
2222
return '8.3'
2323
}
2424
# https://github.com/php/php-src/blob/php-8.2.0RC1/Zend/zend_modules.h#L34
25-
# https://github.com/php/php-src/blob/php-8.2.18/Zend/zend_modules.h#L34
25+
# https://github.com/php/php-src/blob/php-8.2.19/Zend/zend_modules.h#L34
2626
20220829 {
2727
return '8.2'
2828
}

0 commit comments

Comments
 (0)