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 #1

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

Actions #2

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

Actions #3

Updated by Markus Bucher over 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #4

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
Actions #5

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF