[TYPO3-core] RFC #16957: Bug: cli_dispatch.phpsh ignores PATH to php and assumes it's in /usr/bin/

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Jan 10 23:21:58 CET 2011


Jeff Segars schrieb am 10.01.2011 23:18:
> On 1/10/11 4:14 PM, Andreas Lappe wrote:
>> On 10.01.11, Ernesto Baschny [cron IT] wrote:
>>> The above mentioned trouble is "documented" even on Wikipedia [1] under
>>> "Portability".
>>> I think we don't need the "-q" parameter. What does it do? It is not
>>> even documented in PHP 5.2.x? Without it, it should be the most portable
>>> solution.
>>> Cheers,
>>> Ernesto
>>> [1] http://en.wikipedia.org/wiki/Shebang_%28Unix%29
>>
>>      -q     Quiet-mode. Suppress HTTP header output (CGI only).
>>
>> This might be due to the difference of using the real cli-version or the
>> cgi-version in shell…
>>
>> So long
>> Andy
> 
> I haven't found an official statement, but comments around the web
> indicate that -q is deprecated (and now turned on by default) since PHP
> 5.2.  "php -h" does not include it in the list of options.

"php-cgi -h" includes it (if you are running Debian, you must install
php5-cgi package to get it, else you are testing the "CLI" API, which
doesn't need it).

Cheers,
Ernesto



More information about the TYPO3-team-core mailing list