Bug #24506
closedcli_dispatch.phpsh ignores PATH to php and assumes it's in /usr/bin/
100%
Description
The cli_dispatch.phpsh script assumes that the php is installed in /usr/bin/ which might not be the case or you have several installations, which would then require you to edit the script.
Instead use the shebang #! /usr/bin/env php -q to make it aware of environment variables.
I searched the net for some assurance that `env` is always found in /usr/bin/ (I remember vaguely to have read something about that being in the POSIX guidelines, but I cannot find it there). So far, I tried on:
Various Linux
Mac OS X
FreeBSD
OpenBSD
NetBSD
PCBSD
Solaris
So I assume it wouldn't be that bad to change it. Users on really exotic systems might still have to edit the script, but this fixes it for the 99% of us…
I'd really love to see this in the LTS-Version…
(issue imported from #M16957)
Files