From a28f3fc9f1691a11ebf0e1a4a0a5c216545a73d9 Mon Sep 17 00:00:00 2001 From: Helmut Hummel Date: Sat, 30 Jun 2012 23:05:43 +0200 Subject: [PATCH] Add apc to installed functions --- install-php-extensions.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install-php-extensions.sh b/install-php-extensions.sh index 78b4fad..108e1ce 100644 --- a/install-php-extensions.sh +++ b/install-php-extensions.sh @@ -1,6 +1,13 @@ #!/bin/bash -# install igbinary -pyrus install pecl/igbinary && pyrus build pecl/igbinary -echo "extension=\"igbinary.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` + +function installPhpExtension() { + name=$1 + pyrus install pecl/$name && pyrus build pecl/$name + echo "extension=\"$name.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` +} + +installPhpExtension igbinary +installPhpExtension apc +