mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #5506 from toxyy/ticket/15935
[ticket/15935] Don't install APCu if it's already installed
This commit is contained in:
commit
d62a16bae6
1 changed files with 7 additions and 4 deletions
|
@ -49,10 +49,13 @@ echo 'opcache.enable=0' >> "$php_ini_file"
|
||||||
# APCu
|
# APCu
|
||||||
if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ]
|
if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ]
|
||||||
then
|
then
|
||||||
|
if ! [ "$(pecl info pecl/apcu)" ]
|
||||||
|
then
|
||||||
echo 'Enabling APCu PHP extension'
|
echo 'Enabling APCu PHP extension'
|
||||||
printf "\n" | pecl install apcu
|
printf "\n" | pecl install apcu
|
||||||
echo 'apc.enabled=1' >> "$php_ini_file"
|
echo 'apc.enabled=1' >> "$php_ini_file"
|
||||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue