Skip to content

Commit

Permalink
Recognize API version of PHP 8.3 rc
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Sep 5, 2023
1 parent adf4ba3 commit ea71b5b
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 ea71b5b

Please sign in to comment.