#4327 - Improve PHP path detection

Identifier #4327
Issue type Feature request or suggestion
Title Improve PHP path detection
Status Completed
Handling member Chris Graham
Version 10.0.31
Addon core
Description The cron_bridge.php script has a mode to give out a sample Cron configuration line.
The PHP detection can be improved.

PHP executables are no longer likely to have the version number in them, at least not in any consistent way given the pace of new PHP versions.
So it's pointless checking for that.

We can respect that PHP on Windows may be in a directory named after the PHP version though, by using wildcards.

However, we can do the search in a more logical way, respecting all the common conventions on each platform, in the best precedence order.
Steps to reproduce

Funded? No
Commits

Fixed MANTIS-4327 (Improve PHP path detection) (e2488c0d) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated