* the PEAR installer, for creating, distributing and installing packages * the PEAR_Exception PHP5 error handling mechanism * the PEAR_ErrorStack advanced error handling mechanism * the PEAR_Error error handling mechanism * the OS_Guess class for retrieving info about the OS where PHP is running on * the System class for quick handling of common operations with files and directories * the PEAR base class
30 lines
807 B
Bash
30 lines
807 B
Bash
#!@SH@
|
|
#
|
|
# $Id: pear.sh,v 1.1.1.1 2007/05/05 21:21:47 adrianp Exp $
|
|
|
|
# first find which PHP binary to use
|
|
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
|
|
PHP="$PHP_PEAR_PHP_BIN"
|
|
else
|
|
if test "@php_bin@" = '@'php_bin'@'; then
|
|
PHP=php
|
|
else
|
|
PHP="@php_bin@"
|
|
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 "@php_dir@" = '@'php_dir'@'; then
|
|
INCDIR=`dirname $0`
|
|
INCARG=""
|
|
else
|
|
INCDIR="@php_dir@"
|
|
INCARG="-d include_path=@php_dir@"
|
|
fi
|
|
fi
|
|
|
|
exec $PHP -C -q $INCARG -d output_buffering=1 -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" -d auto_prepend_file="" -d auto_append_file="" -d memory_limit=12M $INCDIR/pearcmd.php "$@"
|