From d040a6fa1db54e2f5f90aca1ba18c9e7b68ebee4 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 3 Jun 2024 08:54:27 +0200 Subject: [PATCH 1/2] [minor] Update ZEND_MODULE_API_NO comments --- PhpManager/private/Get-PhpVersionFromApiVersion.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 b/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 index 8586e39..46a9dcd 100644 --- a/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 +++ b/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 @@ -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' } From fb2f8be6a30a8ac2cfdb9daaa937e0718d31f3f2 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 3 Jun 2024 09:15:11 +0200 Subject: [PATCH 2/2] Update URL of PECL binaries --- PhpManager/private/Get-PeclArchiveUrl.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PhpManager/private/Get-PeclArchiveUrl.ps1 b/PhpManager/private/Get-PeclArchiveUrl.ps1 index 0425164..22d6a62 100644 --- a/PhpManager/private/Get-PeclArchiveUrl.ps1 +++ b/PhpManager/private/Get-PeclArchiveUrl.ps1 @@ -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) @@ -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 {