Req #69460 [NEW]: Don't output shebang line

From: Date: Wed, 15 Apr 2015 09:31:52 +0000
Subject: Req #69460 [NEW]: Don't output shebang line
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192084@lists.php.net to get a copy of this message
From: michaelduff2 at yahoo dot com Operating system: PHP version: Irrelevant Package: *General Issues Bug Type: Feature/Change Request Bug description:Don't output shebang line Description: ------------ When a PHP script is executed via the command-line, the "shebang" (which looks like this:) #!/usr/bin/php Is not printed to the console. However, when executing a PHP script via a web server such as mod_php, etc., the line IS output to the browser, though I am sure this is very, very rarely (if ever) desirable behaviour. Removing this inconsistency would allow a single PHP script to operate in both "web page" and command-line modes depending on how it is executed. This feature request has previously been declared "Related To" Bugs #54588 and #64488, and then a "Duplicate" of #31563, which was then set to "won't fix" with a reason of "Windows XP reached end of support on April 8th, 2014" I believe that misses the point (as operating system is not inherently a factor) and, infact potentially makes this issue even /more/ important for cross-platform compatibility reasons. -- Edit bug report at https://bugs.php.net/bug.php?id=69460&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69460&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69460&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69460&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69460&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69460&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69460&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69460&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69460&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69460&r=support Expected behavior: https://bugs.php.net/fix.php?id=69460&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69460&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69460&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69460&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69460&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69460&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69460&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69460&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69460&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69460&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69460&r=mysqlcfg

« previous php.bugs (#192084) next »