From d80245767473bb07cf47517442045610e850ea13 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 21 Apr 2024 18:16:08 +0530 Subject: [PATCH] Fix reading extension_dir in PHP 8.4 on macOS --- src/scripts/darwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index b7f7e3fb5..0979f526d 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -227,7 +227,7 @@ setup_php() { status="Updated to" fi php_config="$(command -v php-config)" - ext_dir="$(grep 'extension_dir=' "$php_config" | cut -d "'" -f 2)" + ext_dir="$(sed -n "s/.*extension_dir=['\"]\(.*\)['\"].*/\1/p" "$php_config")" ini_dir="$(php_ini_path)" scan_dir="$(get_scan_dir)" ini_file="$ini_dir"/php.ini