From e5071165a002a135a1b51ff3cafe7794b6719f0d Mon Sep 17 00:00:00 2001 From: devlinf <129198759+devlinf@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:23:45 +0200 Subject: [PATCH 1/2] Update phpswitch.sh Removed commas from "brew_array" between "8.2" and "8.3" versions. Added comment for Apache folder "apache_conf_path", if Apache is installed via Home Brew on Apple Silicon --- phpswitch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpswitch.sh b/phpswitch.sh index 595fc9a..c254d30 100755 --- a/phpswitch.sh +++ b/phpswitch.sh @@ -9,7 +9,7 @@ osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') -brew_array=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2", "8.3", "8.4") +brew_array=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2" "8.3" "8.4") php_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3" "php@7.4" "php@8.0" "php@8.1" "php@8.2" "php@8.3" "php@8.4") valet_support_php_version_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3" "php@7.4" "php@8.0" "php@8.1" "php@8.2" "php@8.3" "php@8.4") php_installed_array=() @@ -52,7 +52,10 @@ elif [[ $(echo "$php_version" | sed 's/^php@//' | sed 's/\.//') -ge 70 ]]; then fi apache_change=1 +# Default Apache httpd folder apache_conf_path="/etc/apache2/httpd.conf" +# Apache httpd folder, if apache is installed via Home Brew (new Apple Silicon) +# apache_conf_path="/opt/homebrew/etc/httpd/httpd.conf" apache_php_mod_path="$php_opt_path$php_version$apache_php_lib_path" valet_restart=0 From cb7340e6a6474326bc65a95bae091e136f1fc9b0 Mon Sep 17 00:00:00 2001 From: devlinf <129198759+devlinf@users.noreply.github.com> Date: Wed, 12 Nov 2025 15:33:54 +0100 Subject: [PATCH 2/2] Update phpswitch.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- phpswitch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpswitch.sh b/phpswitch.sh index c254d30..f0237f7 100755 --- a/phpswitch.sh +++ b/phpswitch.sh @@ -54,7 +54,7 @@ fi apache_change=1 # Default Apache httpd folder apache_conf_path="/etc/apache2/httpd.conf" -# Apache httpd folder, if apache is installed via Home Brew (new Apple Silicon) +# Apache httpd folder, if Apache is installed via Homebrew (new Apple Silicon) # apache_conf_path="/opt/homebrew/etc/httpd/httpd.conf" apache_php_mod_path="$php_opt_path$php_version$apache_php_lib_path"