-
-
Notifications
You must be signed in to change notification settings - Fork 45
Description
Describe the bug
In the Settings > PHP Path field, setting the path to t
6ADB
he PHP binary as /usr/bin/php (which is correct on most Linux systems) triggers an 'Invalid path' error. However, if I input /usr/bin/ (directory only), the error disappears — even if the directory is incorrect or fake (e.g., /invalid/path/), which is misleading. Regardless of the input, PHP code (e.g. echo "test";) does not execute.
To Reproduce
Steps to reproduce the behavior:
- Go to Settings
- In PHP Path, enter
/usr/bin/php - Go to a project
- Try to run a simple script (e.g.
echo "test";) - See error:
'Invalid path'
Expected behavior
The field should properly validate the actual PHP binary path (/usr/bin/php) and execute code when a valid binary is set. It should also reject directories or incorrect paths with proper feedback.
Screenshots
https://imgur.com/a/AGHneLi
Desktop (please complete the following information):
- OS: Kubuntu 24.04.2 LTS (x86_64)
Additional context
Other Linux users may face this too, as PHP is typically located in /usr/bin/php. Behavior on macOS appears to differ — perhaps the validation logic not properly implemented on Linux. A more reliable cross-platform path validation would be appreciated.