From e513384a656077c16b0cd9a6b883e1346a09c7ff Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 2 Apr 2023 23:23:48 +0530 Subject: [PATCH] Fix jit configuration --- src/scripts/unix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/unix.sh b/src/scripts/unix.sh index b8f3e0f7..f5a9855b 100644 --- a/src/scripts/unix.sh +++ b/src/scripts/unix.sh @@ -173,9 +173,10 @@ configure_php() { add_php_config ini_config_dir="${src:?}"/configs/ini ini_config_files=("$ini_config_dir"/php.ini) - [[ "$version" =~ $jit_versions ]] && ini_config_files+=("$ini_config_dir"/jit.ini) + jit_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 + [[ "$version" =~ $jit_versions ]] && cat "${jit_config_files[@]}" | sudo tee -a "${pecl_file:-${ini_file[@]}}" >/dev/null 2>&1 } # Function to get PHP version in semver format.