php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31563 shebang removal
Submitted: 2005-01-15 08:17 UTC Modified: 2014-05-01 02:08 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: pete at pwdk dot com Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
6 + 11 = ?
Subscribe to this entry?

 
 [2005-01-15 08:17 UTC] pete at pwdk dot com
Description:
------------
It would be nice if there was an option in the php.ini to stop shebang lines from being outputted to the screen when php is running as a module.

I'm sure there must be a way to setup php/apache up on windows so the line is not displayed, but it would be handy for developers to have an easy way of removing the line.



Reproduce code:
---------------
#!/usr/bin/php
<?
echo "Hello World"
?>


Expected result:
----------------
Hello World

Actual result:
--------------
Windows XP output: "#!/usr/bin/php Hello World" 
Linux output "Hello World"





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-01 02:08 UTC] levim@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues -Operating System: XP +Operating System: Windows XP
 [2014-05-01 02:08 UTC] levim@php.net
Windows XP reached end of support on April 8th, 2014.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC