diff --git a/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 b/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 index cf87401..5d329f2 100644 --- a/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 +++ b/PhpManager/private/Get-PhpVersionFromApiVersion.ps1 @@ -16,18 +16,22 @@ function Get-PhpVersionFromApiVersion { return '' } switch ($ApiVersion) { + # https://github.com/php/php-src/blob/php-8.1.0alpha1/Zend/zend_modules.h#L34 + 20201009 { + return '8.1' + } # https://github.com/php/php-src/blob/php-8.0.0rc1/Zend/zend_modules.h#L34 - # https://github.com/php/php-src/blob/php-8.0.2/Zend/zend_modules.h#L34 + # https://github.com/php/php-src/blob/php-8.0.7/Zend/zend_modules.h#L34 20200930 { return '8.0' } # https://github.com/php/php-src/blob/php-7.4.0RC1/Zend/zend_modules.h#L34 - # https://github.com/php/php-src/blob/php-7.4.11/Zend/zend_modules.h#L34 + # https://github.com/php/php-src/blob/php-7.4.20/Zend/zend_modules.h#L34 20190902 { return '7.4' } # https://github.com/php/php-src/blob/php-7.3.0beta1/Zend/zend_modules.h#L34 - # https://github.com/php/php-src/blob/php-7.3.23/Zend/zend_modules.h#L34 + # https://github.com/php/php-src/blob/php-7.3.28/Zend/zend_modules.h#L34 20180731 { return '7.3' }