Skip to content

Commit

Permalink
Fix reading extension_dir in PHP 8.4 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Apr 21, 2024
1 parent 8872c78 commit d802457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d802457

Please sign in to comment.