From 1d23576a710a154a650068969d285256bb45482e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Apr 2014 09:47:31 +0200 Subject: php-pear: fix xml.so is shared only with php 5.5+ --- pecl.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pecl.sh') diff --git a/pecl.sh b/pecl.sh index 7c56e2c..cb55ef9 100644 --- a/pecl.sh +++ b/pecl.sh @@ -1,8 +1,11 @@ #!/bin/sh +EXT="-d extension=posix.so" +DIR=$(/usr/bin/php -r 'echo ini_get("extension_dir");') +if [ -f $DIR/xml.so ] ; then + EXT="$EXT -d extension=xml.so" +fi exec /usr/bin/php -C \ - -n \ - -d extension=posix.so \ - -d extension=xml.so \ + -n $EXT \ -d include_path=/usr/share/pear \ -d date.timezone=UTC \ -d output_buffering=1 \ -- cgit