From debfd8a03de0b4ad39184f53010a893568c9faa6 Mon Sep 17 00:00:00 2001 From: adrianp Date: Tue, 18 Jul 2006 21:21:19 +0000 Subject: Fix for CVE-2006-1990 Fix for CVE-2006-3011 Include our own pear.sh from the tarball but slightly hacked to get around memory isses on installation. --- www/php4/files/pear.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 www/php4/files/pear.sh (limited to 'www/php4/files') diff --git a/www/php4/files/pear.sh b/www/php4/files/pear.sh new file mode 100644 index 00000000000..a8eb8cdc80f --- /dev/null +++ b/www/php4/files/pear.sh @@ -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 + 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 -dmemory_limit=12M $INCDIR/pearcmd.php "$@" -- cgit v1.2.3