|
Server : LiteSpeed System : Linux premium152.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : idesfsze ( 1473) PHP Version : 7.4.33 Disable Function : NONE Directory : /opt/alt/php84/usr/bin/ |
#!/bin/bash
set -e
PHP=(/opt/alt/php84/usr/bin/php)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
COMPOSER="${SCRIPT_DIR}/composer.phar"
if "${PHP[@]}" -r "if (extension_loaded('phar')) exit(1);"; then
PHP+=(-d 'extension=phar.so')
fi
if "${PHP[@]}" -r "if (extension_loaded('json')) exit(1);"; then
PHP+=(-d 'extension=json.so')
fi
"${PHP[@]}" ${COMPOSER} $*