You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running phpvm use 8.4, PHPVM fails to detect and use the latest version of PHP (8.4) on macOS when installed via Homebrew. This issue occurs because Homebrew installs the latest PHP version under the generic formula php (i.e., brew install php), rather than as a versioned package (e.g., [email protected]).
Steps To Reproduce
Install the latest version of PHP using Homebrew:
brew install php
Verify that PHP is installed and running the expected version:
php -v
Try switching to PHP 8.4 using PHPVM:
phpvm use 8.4
Observe that PHPVM fails to detect and switch to PHP 8.4.
Expected Behavior
PHPVM should correctly detect and switch to the latest installed version of PHP, even when installed using the generic php formula in Homebrew.
Actual Behavior
PHPVM does not detect the latest version and fails to switch to PHP 8.4.
Potential Fix
Modify PHPVM to check for the generic php formula in Homebrew when a version like 8.4 is requested.
Add logic to determine the installed PHP version when brew install php is used.
Provide a fallback mechanism or alias for the latest PHP version when installed via Homebrew.
System Information
macOS Version: 15.3
Homebrew Version: 4.4.20
PHPVM Version: 1.1.0
Additional Context
Homebrew maintains the latest PHP version under php instead of specific [email protected] formulas. This makes it difficult for PHPVM to recognize the installed version unless it explicitly checks for php when determining available versions.
The text was updated successfully, but these errors were encountered:
Description
When running
phpvm use 8.4
, PHPVM fails to detect and use the latest version of PHP (8.4) on macOS when installed via Homebrew. This issue occurs because Homebrew installs the latest PHP version under the generic formulaphp
(i.e.,brew install php
), rather than as a versioned package (e.g.,[email protected]
).Steps To Reproduce
Expected Behavior
PHPVM should correctly detect and switch to the latest installed version of PHP, even when installed using the generic
php
formula in Homebrew.Actual Behavior
PHPVM does not detect the latest version and fails to switch to PHP 8.4.
Potential Fix
php
formula in Homebrew when a version like8.4
is requested.brew install php
is used.System Information
Additional Context
Homebrew maintains the latest PHP version under
php
instead of specific[email protected]
formulas. This makes it difficult for PHPVM to recognize the installed version unless it explicitly checks forphp
when determining available versions.The text was updated successfully, but these errors were encountered: