From:             salsi at icosaedro dot it
Operating system: Slackware 12.0
PHP version:      5.3SVN-2009-08-06 (SVN)
PHP Bug Type:     CGI related
Bug description:  PHP CGI always outputs the shebang line

Description:
------------
Executing any PHP CGI script always results in the shebang line being
displayed along the correct HTML code of the WEB page.
This happens with and without the --enable-discard-path configuration flag
(although I'm not really sure this flag be realted to the issue or not).

Reproduce code:
---------------
#!/usr/local/php-5.3.0/bin/php-cgi -c /home/salsi/php530/php.ini
<?php
echo PHP_VERSION;
?>


Expected result:
----------------
$ ./shebang.php 
X-Powered-By: PHP/5.3.1-dev
Content-type: text/html

5.3.1-dev

Actual result:
--------------
$ ./shebang.php 
X-Powered-By: PHP/5.3.1-dev
Content-type: text/html

#!/usr/local/php-5.3.0/bin/php-cgi -c /home/salsi/php530/php.ini
5.3.1-dev

-- 
Edit bug report at http://bugs.php.net/?id=49182&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49182&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49182&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49182&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49182&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49182&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49182&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49182&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49182&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49182&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49182&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49182&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49182&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49182&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49182&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49182&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49182&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49182&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49182&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49182&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49182&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49182&r=mysqlcfg

Reply via email to