mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-13 20:32:11 +02: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
@ -38,9 +38,12 @@ function install_php_extension
|
||||
php_ini_file=$(find_php_ini)
|
||||
|
||||
# apc
|
||||
echo 'Enabling APC PHP extension'
|
||||
register_php_extension 'apc' "$php_ini_file"
|
||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ]
|
||||
then
|
||||
echo 'Enabling APC PHP extension'
|
||||
register_php_extension 'apc' "$php_ini_file"
|
||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||
fi
|
||||
|
||||
# redis
|
||||
git clone git://github.com/nicolasff/phpredis.git redis
|
||||
|
Loading…
x
Reference in New Issue
Block a user