PHP 4.0 Bug #9446: CGI version echos first line

From: Date: Sun, 25 Feb 2001 20:37:41 +0000
Subject: PHP 4.0 Bug #9446: CGI version echos first line
Groups: php.dev 
Request: Send a blank email to php-dev+get-47495@lists.php.net to get a copy of this message
From: vinay@kryogen.com Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: *Configuration Issues Bug description: CGI version echos first line 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) -- Edit Bug report at: http://bugs.php.net/?id=9446&edit=1

« previous php.dev (#47495) next »