mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15924] Enable APCu extension
PHPBB3-15924
This commit is contained in:
parent
bdf9af0abb
commit
a23a7602b7
1 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,16 @@ else
|
||||||
echo 'opcache.enable=0' >> "$php_ini_file"
|
echo 'opcache.enable=0' >> "$php_ini_file"
|
||||||
fi
|
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
|
# redis
|
||||||
# Disabled redis for now as it causes travis to fail
|
# Disabled redis for now as it causes travis to fail
|
||||||
# git clone git://github.com/nicolasff/phpredis.git redis
|
# git clone git://github.com/nicolasff/phpredis.git redis
|
||||||
|
|
Loading…
Add table
Reference in a new issue