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:
parent
bdf9af0abb
commit
a23a7602b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user