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
