From ee065c5938a80517a721131ec68cb2e2ba5dc26b Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 25 May 2022 20:43:46 +0530 Subject: [PATCH] Append custom ini files to php.ini files --- src/scripts/unix.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/unix.sh b/src/scripts/unix.sh index 05409eea..7ca19e4d 100644 --- a/src/scripts/unix.sh +++ b/src/scripts/unix.sh @@ -159,10 +159,10 @@ self_hosted_setup() { configure_php() { add_php_config ini_config_dir="${src:?}"/configs/ini - ini_files=("$ini_config_dir"/php.ini) - [[ "$version" =~ $jit_versions ]] && ini_files+=("$ini_config_dir"/jit.ini) - [[ "$version" =~ $xdebug3_versions ]] && ini_files+=("$ini_config_dir"/xdebug.ini) - cat "${ini_files[@]}" | sudo tee -a "${pecl_file:-${ini_file[@]}}" >/dev/null 2>&1 + ini_config_files=("$ini_config_dir"/php.ini) + [[ "$version" =~ $jit_versions ]] && ini_config_files+=("$ini_config_dir"/jit.ini) + [[ "$version" =~ $xdebug3_versions ]] && ini_config_files+=("$ini_config_dir"/xdebug.ini) + cat "${ini_config_files[@]}" | sudo tee -a "${ini_file[@]:?}" >/dev/null 2>&1 } # Function to get PHP version in semver format.