v1.4.1
v1.4.1
Published: 2025-07-13T14:05:12Z
Fixed
- Fixed script execution detection failing on macOS/zsh: Resolved critical issue where
phpvmcommands (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
returntest 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.