php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9446 CGI version echos first line
Submitted: 2001-02-25 15:37 UTC Modified: 2001-03-06 12:07 UTC
From: vinay at kryogen dot com Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vinay at kryogen dot com
New email:
PHP Version: OS:

 

 [2001-02-25 15:37 UTC] vinay at kryogen dot 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-06 06:34 UTC] stas@php.net
Do you use Zend Optimizer, probably?
 [2001-03-06 11:52 UTC] vinay at kryogen dot com
Yes, I use Zend Optimizer.  Is it causing the problem ?
 [2001-03-06 11:59 UTC] stas@php.net
Putting this:

zend_optimizer.enable_loader=0

in the php.ini should help you.
 [2001-03-06 12:07 UTC] vinay at kryogen dot com
there are encoded files on that machine too.  By disabling optimizer, all encoded files stop running.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC