1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

[ticket/15924] Enable APCu extension

PHPBB3-15924
This commit is contained in:
Marc Alexander 2019-01-01 10:03:08 +01:00
parent bdf9af0abb
commit a23a7602b7
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -53,6 +53,16 @@ else
echo 'opcache.enable=0' >> "$php_ini_file"
fi
# APCu
if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ]
then
echo 'Enabling APCu PHP extension'
printf "\n" | pecl install apcu
echo 'apc.enabled=1' >> "$php_ini_file"
echo 'apc.enable_cli=1' >> "$php_ini_file"
fi
# redis
# Disabled redis for now as it causes travis to fail
# git clone git://github.com/nicolasff/phpredis.git redis