Skip to content

Commit

Permalink
Merge pull request #115 from mlocati/php8.3-rc
Browse files Browse the repository at this point in the history
Recognize API version of PHP 8.3 rc
  • Loading branch information
mlocati authored Sep 5, 2023
2 parents adf4ba3 + ea71b5b commit c233efe
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions PhpManager/private/Get-PhpVersionFromApiVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@ function Get-PhpVersionFromApiVersion {
return ''
}
switch ($ApiVersion) {
# https://github.com/php/php-src/blob/php-8.3.0alpha1/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.3.0beta2/Zend/zend_modules.h#L34
20220830 {
# https://github.com/php/php-src/blob/php-8.3.0RC1/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.9/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.2.10/Zend/zend_modules.h#L34
20220829 {
return '8.2'
}
# https://github.com/php/php-src/blob/php-8.1.0RC1/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.1.21/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.1.23/Zend/zend_modules.h#L34
20210902 {
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.29/Zend/zend_modules.h#L34
# https://github.com/php/php-src/blob/php-8.0.30/Zend/zend_modules.h#L34
20200930 {
return '8.0'
}
Expand Down

0 comments on commit c233efe

Please sign in to comment.