summaryrefslogtreecommitdiffstats
path: root/pecl.sh
blob: cb55ef90e516a57549717d98647673dd599d9d5c (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 -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 "$@"