diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-01-27 01:17:54 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-02-03 15:33:46 +0100 |
commit | 3b6542adf8d20acdbe400c2547121a1da86a855e (patch) | |
tree | f61ac6be4c4a779ed357948d0decca3dd094e529 | |
parent | a01229346288cbb3118adf159000f51260733606 (diff) | |
download | forums-3b6542adf8d20acdbe400c2547121a1da86a855e.tar forums-3b6542adf8d20acdbe400c2547121a1da86a855e.tar.gz forums-3b6542adf8d20acdbe400c2547121a1da86a855e.tar.bz2 forums-3b6542adf8d20acdbe400c2547121a1da86a855e.tar.xz forums-3b6542adf8d20acdbe400c2547121a1da86a855e.zip |
[ticket/11985] Enable APC on command line so it can be used by PHPUnit.
PHPBB3-11985
-rwxr-xr-x | travis/install-php-extensions.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/travis/install-php-extensions.sh b/travis/install-php-extensions.sh index 908dcdf7f3..11d5fad944 100755 --- a/travis/install-php-extensions.sh +++ b/travis/install-php-extensions.sh @@ -13,6 +13,13 @@ function find_php_ini # $1 - PHP extension name # $2 - PHP ini file path +function register_php_extension +{ + echo "extension=$1.so" >> "$2" +} + +# $1 - PHP extension name +# $2 - PHP ini file path function install_php_extension { echo "Installing $1 PHP extension" @@ -25,11 +32,16 @@ function install_php_extension make install cd .. - echo "extension=$1.so" >> "$2" + register_php_extension "$1" "$2" } 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" + # redis git clone git://github.com/nicolasff/phpredis.git redis install_php_extension 'redis' "$php_ini_file" |