PHP 4.0 Bug #8959 Updated: Use of Zend Optimizer w/ CGI SAPI causes echo of #!php at script start
| From: | jimw@php.net | Date: | Sun, 28 Jan 2001 00:53:21 +0000 |
| Subject: | PHP 4.0 Bug #8959 Updated: Use of Zend Optimizer w/ CGI SAPI causes echo of #!php at script start | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45170@lists.php.net to get a copy of this message | ||
ID: 8959
Updated by: jimw
Reported By: pdoyle@xo.com
Old-Status: Open
Status: Bogus
Bug Type: PHP options/info functions
Assigned To:
Comments:
bugs in the zend optimizer should be reported to zend.com.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-27 18:32:11] pdoyle@xo.com
I have compiled and installed PHP 4.0.4pl1 without problems, and we run it as an external binary
from our Web server (SAPI CGI).
However, when I install the current Zend Optimizer and add the appropriate lines to the php.ini
file:
zend_optimizer.optimization_level=15
zend_extension="/usr/runtime/src/lib/ZendOptimizer.so"
it now spits out the first line of any script the server runs, i.e., for a script such as:
#!.php
<?
echo "Hello, world.<BR>";
?>
it will produce as HTML output:
#!.php
Hello, world.
I have checked to make sure that it's only these lines in the php.ini file -- when they are
removed, it works fine.
Please note that I had already seen bug #8898 (where this problem occurred for -anyone- using the
SAPI CGI) and made the diff suggested by that author, which fixed the problem when I wasn't
using the optimizer. I suspect that use of the optimizer is sending the CGI SAPI down a different
path to a similar bug but I haven't been able to track it down.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8959