PHP 8.2.30
Preview: pear Size: 1.44 KB
//opt/alt/php71/usr/bin/pear

#!/bin/sh
alt_php_dir="/opt/alt/php71"
if [ `getconf LONG_BIT` = "64" ]
then
    libdir="lib64"
else
    libdir="lib"
fi

FIRST_RUN=`${alt_php_dir}/usr/bin/php -C -q \
    -d include_path=${alt_php_dir}/usr/share/pear \
    -d date.timezone=UTC \
    -d output_buffering=1 \
    -d variables_order=EGPCS \
    -d safe_mode=0 \
    -d register_argc_argv="On" \
    -d open_basedir="" \
    -d auto_prepend_file="" \
    -d auto_append_file=""  \
    ${alt_php_dir}/usr/share/pear/pearcmd.php "$@"`

if `echo "${FIRST_RUN}" | grep -q "requires PHP extension"`; then
    EXTENSIONS=`echo "${FIRST_RUN}" | grep -o 'requires PHP extension "[a-z]*"' | sed 's/requires PHP extension //' | sed 's/"//g'`
    INCLUDE=""
    for ext in ${EXTENSIONS}; do
        if [ -e ${alt_php_dir}/usr/${libdir}/php/modules/${ext}.so ]; then
            INCLUDE="${INCLUDE} -d extension=${ext}.so"
        else
            echo "$FIRST_RUN"
            echo "alt-PHP extension ${ext} is required."
            exit 1
        fi
    done
    ${alt_php_dir}/usr/bin/php -C -q -n \
        -d include_path=${alt_php_dir}/usr/share/pear \
        -d date.timezone=UTC \
        -d output_buffering=1 \
        -d variables_order=EGPCS \
        -d safe_mode=0 \
        -d register_argc_argv="On" \
        -d open_basedir="" \
        -d auto_prepend_file="" \
        -d auto_append_file=""  \
        ${INCLUDE} \
        ${alt_php_dir}/usr/share/pear/pearcmd.php "$@"
else
        echo "$FIRST_RUN"
fi

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
5.29 MB lrwxr-xr-x 2026-03-08 18:31:05
Edit Download
11.58 MB lrwxr-xr-x 2024-02-22 11:04:55
Edit Download
1.44 KB lrwxr-xr-x 2025-05-12 17:01:28
Edit Download
428 B lrwxr-xr-x 2025-05-12 17:01:28
Edit Download
319 B lrwxr-xr-x 2025-05-12 17:01:28
Edit Download
14.48 KB lrwxr-xr-x 2026-03-08 18:30:50
Edit Download
14.48 KB lrwxr-xr-x 2026-03-08 18:30:50
Edit Download
5.32 MB lrwxr-xr-x 2026-03-08 18:31:05
Edit Download
5.26 MB lrwxr-xr-x 2026-03-08 18:31:04
Edit Download
7.29 KB lrwxr-xr-x 2026-03-08 18:30:49
Edit Download
5.48 MB lrwxr-xr-x 2026-03-08 18:31:05
Edit Download
4.46 KB lrwxr-xr-x 2026-03-08 18:30:49
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).