v1.4.1
Fixed
- Fixed script execution detection failing on macOS/zsh: Resolved critical issue where
phpvm
commands (help
,list
,use
, etc.) would run silently without any output on macOS systems using zsh shell, making the tool appear completely non-functional. - Fixed execution detection logic in
phpvm_should_execute_main()
: The original detection method incorrectly identified script execution as "sourcing" on macOS/zsh environments, causing the script to only load functions without executing the main command handler. - Enhanced shell compatibility with argument-based detection: Added more reliable execution detection by checking for script arguments as the primary indicator, with the original
return
test maintained as fallback for POSIX shell compatibility. - Improved detection layer ordering: Reorganized execution detection logic to prioritize more reliable methods (argument presence) over shell-specific tests that behave inconsistently across different environments.
New Contributors
- @ledunguit made their first contribution in #7
Full Changelog: 1.4.0...1.4.1