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
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Ia5e6c5ed3c3615bec373b3075daf0f43721584ce has been pushed to the review server.
It is available at http://review.typo3.org/3331
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change Ia5e6c5ed3c3615bec373b3075daf0f43721584ce has been pushed to the review server.
It is available at http://review.typo3.org/3331
Updated by Markus Bucher over 13 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 65439bcb43c5e257c6713c7b1eff9241043ff510.
Updated by Steffen Gebert over 13 years ago
- Target version changed from 0 to 4.6.0-beta1
- TYPO3 Version changed from 4.5 to 4.6
Updated by Xavier Perseguers over 12 years ago
- Status changed from Resolved to Closed
Updated by Ernesto Baschny over 11 years ago
- Target version deleted (
4.6.0-beta1)