mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11985] Don't try to install APC on PHP 5.5 or higher.
PHPBB3-11985
This commit is contained in:
parent
3b6542adf8
commit
b16448b3f8
1 changed files with 6 additions and 3 deletions
|
@ -38,9 +38,12 @@ function install_php_extension
|
||||||
php_ini_file=$(find_php_ini)
|
php_ini_file=$(find_php_ini)
|
||||||
|
|
||||||
# apc
|
# apc
|
||||||
echo 'Enabling APC PHP extension'
|
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ]
|
||||||
register_php_extension 'apc' "$php_ini_file"
|
then
|
||||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
echo 'Enabling APC PHP extension'
|
||||||
|
register_php_extension 'apc' "$php_ini_file"
|
||||||
|
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||||
|
fi
|
||||||
|
|
||||||
# redis
|
# redis
|
||||||
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