[TYPO3-core] RFC: cli_dispatch.phpsh

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Nov 29 10:46:54 CET 2006


This is a SVN patch request

Type: Bugfix

Description:

Kasper added the nice "cli_dispatch.phpsh" script to TYPO3 core. I was
trying to use it to call some CLI's, but it failed with:

ERROR: /home/ernst/typo3cvs.cron.stgt.vpn/typo3/ was not a file. Maybe your
environment does not support running this script with a relative path? Try
to run the script with its absolute path and you should be fine.

Neither $_ENV['_'] nor $_SERVER['_'] is set on my server ("standard"
SuSE Linux with PHP 4.3.8).

The attached patch just changes the method of finding out the current
path to using $_SERVER['argv'][0], which should always be set when
calling a PHP script from CLI.

Branches: trunk and TYPO3 4.0 (probably for 4.0.4)


Cheers,
Ernesto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cli_dispatch.diff
Type: text/x-diff
Size: 671 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20061129/1062c9f5/attachment.bin 


More information about the TYPO3-team-core mailing list