PHP 8.2 tokenizer ext default available

This commit is contained in:
Shao Yu-Lung (Allen) 2022-12-15 20:13:33 +08:00
parent 03345453af
commit 74279feed7

View File

@ -39,8 +39,9 @@ RUN apk --update add wget \
RUN pecl channel-update pecl.php.net; \ RUN pecl channel-update pecl.php.net; \
docker-php-ext-install mysqli mbstring pdo pdo_mysql xml pcntl; \ docker-php-ext-install mysqli mbstring pdo pdo_mysql xml pcntl; \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \ if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80100" ] || \
php -m | grep -q 'tokenizer'; \ [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80200" ]; then \
php -m | grep -oiE '^tokenizer$'; \
else \ else \
docker-php-ext-install tokenizer; \ docker-php-ext-install tokenizer; \
fi fi