Skip to content

Commit a9dabc1

Browse files
authored
Merge pull request #80 from mlocati/php8.1
Recognize ZEND_MODULE_API_NO of PHP 8.1.0alpha1
2 parents 93b70b5 + bf1b5ab commit a9dabc1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

PhpManager/private/Get-PhpVersionFromApiVersion.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@ function Get-PhpVersionFromApiVersion {
1616
return ''
1717
}
1818
switch ($ApiVersion) {
19+
# https://github.com/php/php-src/blob/php-8.1.0alpha1/Zend/zend_modules.h#L34
20+
20201009 {
21+
return '8.1'
22+
}
1923
# https://github.com/php/php-src/blob/php-8.0.0rc1/Zend/zend_modules.h#L34
20-
# https://github.com/php/php-src/blob/php-8.0.2/Zend/zend_modules.h#L34
24+
# https://github.com/php/php-src/blob/php-8.0.7/Zend/zend_modules.h#L34
2125
20200930 {
2226
return '8.0'
2327
}
2428
# https://github.com/php/php-src/blob/php-7.4.0RC1/Zend/zend_modules.h#L34
25-
# https://github.com/php/php-src/blob/php-7.4.11/Zend/zend_modules.h#L34
29+
# https://github.com/php/php-src/blob/php-7.4.20/Zend/zend_modules.h#L34
2630
20190902 {
2731
return '7.4'
2832
}
2933
# https://github.com/php/php-src/blob/php-7.3.0beta1/Zend/zend_modules.h#L34
30-
# https://github.com/php/php-src/blob/php-7.3.23/Zend/zend_modules.h#L34
34+
# https://github.com/php/php-src/blob/php-7.3.28/Zend/zend_modules.h#L34
3135
20180731 {
3236
return '7.3'
3337
}

0 commit comments

Comments
 (0)