summaryrefslogtreecommitdiffstats
path: root/pecl.sh
blob: fbb999a30d3b02535b1bbd584209b318bdb7446d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
EXT="-d extension=posix.so"
DIR=$(/usr/bin/php -n -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 $EXT \
    -d include_path=/usr/share/pear \
    -d date.timezone=UTC \
    -d output_buffering=1 \
    -d variables_order=EGPCS \
    -d safe_mode=0 \
    -d register_argc_argv="On" \
    /usr/share/pear/peclcmd.php "$@"