I'm not sure if this is a bug, or a bad setting, but is there a setting so that phpExpress does not output the "Sha-Bang" part of a CLI script?
For example, we use quite a few PHP command-line scripts on the same server as our website.
To save typing "php scriptname.php" all the time, we just put:
at the top of the scripts and then make them executable.
This has worked for years, however, with the latest addition of configuring PhpExpress on the server, that line at the top of the file is considered as output by PHPExpress.
If I disable the extension, there is no output (as expected)
[I'm using PHPExpress for PHP5.2 on Linux x86 32-bit for glibc2.3]
Replicating the issue:
Create a script as simple as:
#! /usr/bin/php -q
<?php
print "Hello World!\n"; |
Expected output:
Actual output:
#! /usr/bin/php -q
Hello World! |
If you disable the "extension=phpexpress-php-5.2.so" from php.ini, the output is as expected.