summaryrefslogtreecommitdiffstats
path: root/pecl.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-04-10 09:47:31 +0200
committerRemi Collet <fedora@famillecollet.com>2014-04-10 09:47:31 +0200
commit1d23576a710a154a650068969d285256bb45482e (patch)
tree312e5e580843f7118ffb654c809c7653b3313d76 /pecl.sh
parent9da073994d97ad4a7c584dfd89c9be9464b95478 (diff)
php-pear: fix xml.so is shared only with php 5.5+
Diffstat (limited to 'pecl.sh')
-rw-r--r--pecl.sh9
1 files changed, 6 insertions, 3 deletions
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 \