29 lines
901 B
Plaintext
29 lines
901 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# first find which PHP binary to use
|
||
|
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
|
||
|
PHP="$PHP_PEAR_PHP_BIN"
|
||
|
else
|
||
|
if test "/Users/apostol/.phpbrew/php/php-8.3.3/bin/php" = '@'php_bin'@'; then
|
||
|
PHP=php
|
||
|
else
|
||
|
PHP="/Users/apostol/.phpbrew/php/php-8.3.3/bin/php"
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
# then look for the right pear include dir
|
||
|
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
|
||
|
INCDIR=$PHP_PEAR_INSTALL_DIR
|
||
|
INCARG="-d include_path=$PHP_PEAR_INSTALL_DIR"
|
||
|
else
|
||
|
if test "/Users/apostol/.phpbrew/php/php-8.3.3/lib/php/pear" = '@'php_dir'@'; then
|
||
|
INCDIR=`dirname $0`
|
||
|
INCARG=""
|
||
|
else
|
||
|
INCDIR="/Users/apostol/.phpbrew/php/php-8.3.3/lib/php/pear"
|
||
|
INCARG="-d include_path=/Users/apostol/.phpbrew/php/php-8.3.3/lib/php/pear"
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"
|