[TYPO3-core] RFC: CLI dispatcher doesn't work with CGI API

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Jul 16 14:37:12 CEST 2007


Michael Stucki schrieb:
>> PS: I'm also for renameing the file from cli_dispatcher_phpsh to cli.php
> 
> Well ".phpsh" is a pretty bad extension for a shell script, but ".php" isn't
> better either.

Why is .php bad? It just tells you what it is.

> In any case, this will lead to a break if someone has
> already set up cron jobs using the dispatcher. So -1.

I know...

>> and - what's more important - to remove the #/usr/bin -q from the first
>> line. A hardcoded path is no good and isn't nice when in CGI mode.
> 
> Don't rename, but use "env" for that!
> http://en.wikipedia.org/wiki/Shebang_(Unix)#Solving_shebang_problems_with_the_env_program

Ah! Too bad it's no good for Windows. So shall we change "#! /usr/bin/php" 
to "#! /usr/bin/env php" which moves the dependency to env.

Masi


More information about the TYPO3-team-core mailing list