Skip to content

Commit

Permalink
Merge pull request #116 from mlocati/pecl-url
Browse files Browse the repository at this point in the history
Update URL of PECL binaries
  • Loading branch information
mlocati committed Jun 3, 2024
2 parents 9156755 + fb2f8be commit 03111be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions PhpManager/private/Get-PeclArchiveUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$result = ''
}
process {
# https://github.com/php/web-pecl/blob/467593b248d4603a3dee2ecc3e61abfb7434d24d/include/pear-win-package.php
# https://github.com/php/web-pecl/blob/d46cbd98fc5ce90ec2a45bef5ee4f6c9db3898b7/src/PackageDll.php
$handleLC = $PackageHandle.ToLowerInvariant();
$rxMatch = '/php_' + [regex]::Escape($PackageHandle)
$rxMatch += '-' + [regex]::Escape($PackageVersion)
Expand All @@ -60,9 +60,9 @@
$rxMatch += '-' + [regex]::Escape($PhpVersion.Architecture)
$rxMatch += '\.zip$'
$urls = @()
$urls += "https://windows.php.net/downloads/pecl/releases/$handleLC/$PackageVersion"
$urls += "https://downloads.php.net/~windows/pecl/releases/$handleLC/$PackageVersion/"
if ($MinimumStability -ne $Script:PEARSTATE_STABLE) {
$urls += "https://windows.php.net/downloads/pecl/snaps/$handleLC/$PackageVersion"
$urls += "https://downloads.php.net/~windows/pecl/snaps/$handleLC/$PackageVersion/"
}
foreach ($url in $urls) {
try {
Expand Down
4 changes: 2 additions & 2 deletions PhpManager/private/Get-PhpVersionFromApiVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ function Get-PhpVersionFromApiVersion {
}
switch ($ApiVersion) {
# https://github.com/php/php-src/blob/php-8.3.0RC1/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.3.6/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.3.7/Zend/zend_modules.h#L34
20230831 {
return '8.3'
}
# https://github.com/php/php-src/blob/php-8.2.0RC1/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.2.18/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.2.19/Zend/zend_modules.h#L34
20220829 {
return '8.2'
}
Expand Down

0 comments on commit 03111be

Please sign in to comment.