[ticket/12141] Disable broken opcache extension on PHP 5.5.7.

PHPBB3-12141
This commit is contained in:
Andreas Fischer 2014-02-03 22:26:00 +01:00
parent ac954a7c4b
commit cb544ed7ae

View file

@ -37,6 +37,12 @@ function install_php_extension
php_ini_file=$(find_php_ini) php_ini_file=$(find_php_ini)
# disable broken opcache on PHP 5.5.7
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.8', '<');"` == "1" ]
then
sed -i '/opcache.so/d' "$php_ini_file"
fi
# apc # apc
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ] if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ]
then then