aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-02-03 15:38:49 +0100
committerAndreas Fischer <bantu@phpbb.com>2014-02-03 16:53:15 +0100
commitb16448b3f83176c6468074e0e55709edc5791c2e (patch)
tree56a06eaed9e8efc980934de15cfafc0b8f909718
parent3b6542adf8d20acdbe400c2547121a1da86a855e (diff)
downloadforums-b16448b3f83176c6468074e0e55709edc5791c2e.tar
forums-b16448b3f83176c6468074e0e55709edc5791c2e.tar.gz
forums-b16448b3f83176c6468074e0e55709edc5791c2e.tar.bz2
forums-b16448b3f83176c6468074e0e55709edc5791c2e.tar.xz
forums-b16448b3f83176c6468074e0e55709edc5791c2e.zip
[ticket/11985] Don't try to install APC on PHP 5.5 or higher.
PHPBB3-11985
-rwxr-xr-xtravis/install-php-extensions.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/travis/install-php-extensions.sh b/travis/install-php-extensions.sh
index 11d5fad944..18d6e7e09d 100755
--- a/travis/install-php-extensions.sh
+++ b/travis/install-php-extensions.sh
@@ -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