3 changed files with 40 additions and 31 deletions
@ -0,0 +1,28 @@ |
|||
#!/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 "@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 |
|||
INC="-d include_path=$PHP_PEAR_INSTALL_DIR" |
|||
else |
|||
if test "@php_dir@" = '@'php_dir'@'; then |
|||
INC="" |
|||
else |
|||
INC="-d include_path=@php_dir@" |
|||
fi |
|||
fi |
|||
|
|||
exec $PHP -C -q $INC -d output_buffering=1 $0 $@ |
|||
<?php |
|||
include "@include_path@/pearcmd.php"; |
|||
?> |
|||
@ -1,28 +1,3 @@ |
|||
#!/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 "@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 |
|||
INC="-d include_path=$PHP_PEAR_INSTALL_DIR" |
|||
else |
|||
if test "@php_dir@" = '@'php_dir'@'; then |
|||
INC="" |
|||
else |
|||
INC="-d include_path=@php_dir@" |
|||
fi |
|||
fi |
|||
|
|||
exec $PHP -C -q $INC -d output_buffering=1 $0 $@ |
|||
<?php |
|||
//
|
|||
// +----------------------------------------------------------------------+
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue