Project

General

Profile

Actions

Bug #24506

closed

cli_dispatch.phpsh ignores PATH to php and assumes it's in /usr/bin/

Added by Andreas Lappe almost 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

typo3-core-cli_dispatch.diff (311 Bytes) typo3-core-cli_dispatch.diff Administrator Admin, 2011-01-10 12:09
Actions

Also available in: Atom PDF