PHP 4.0 Bug #9446 Updated: CGI version echos first line
| From: | vinay at kryogen dot com | Date: | Tue, 06 Mar 2001 16:52:32 +0000 |
| Subject: | PHP 4.0 Bug #9446 Updated: CGI version echos first line | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48069@lists.php.net to get a copy of this message | ||
ID: 9446
User Update by: vinay@kryogen.com
Old-Status: Feedback
Status: Open
Bug Type: *Configuration Issues
Description: CGI version echos first line
Yes, I use Zend Optimizer. Is it causing the problem ?
Previous Comments:
---------------------------------------------------------------------------
[2001-03-06 06:34:04] stas@php.net
Do you use Zend Optimizer, probably?
---------------------------------------------------------------------------
[2001-02-25 15:37:41] vinay@kryogen.com
using PHP 4.0.4pl1 under Linux
I configured php as:
./configure --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/posgresql --enable-track-vars
--enable-gd=../gd1.8.3 --enable-ftp --enable-discard-path
now.. the problem is simple... i create script to run from the shell containing the following:
#!/usr/local/bin/php
<?
echo "asdf";
?>
the problem: PHP prints #!/usr/local/bin/php on top of all output.. i tried to use output buffering
to suppress it, but it doesnt catch it, without the #!/usr/local/bin/php I cant run the script from
shell properly ...
I noticed this issue since version 4.0.3pl1 (I think) .. but it was not existant in past versions
(4.0.2 , etc)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9446