php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9096 #! line in a script is outputed in script
Submitted: 2001-02-04 08:19 UTC Modified: 2002-02-09 19:51 UTC
From: liz at xcalibur dot demon dot co dot uk Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: liz at xcalibur dot demon dot co dot uk
New email:
PHP Version: OS:

 

 [2001-02-04 08:19 UTC] liz at xcalibur dot demon dot co dot uk
Example:
#!/usr/local/bin/php -q
<? echo "Hello"; ?>
produces as output
#!/usr/local/bin/php -q
Hello

- which is not the desired effect.

This worked when I used 4.0.3pl1 - which was compiled with the same options and other files (as I made a script to do it!)

Compiled with : ./configure --with-mysql --enable-discard-path --enable-track-vars --disable-debug --enable-dbase --enable-trans-sid --enable-inline-optimization

Any further questions.. (if you want my php binary or anything else)..

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-04 08:36 UTC] rasmus@php.net
Hrm..  I am unable to reproduce this.  I am on Linux and I used your exact ./configure line.  Are you completely sure you are seeing what you say you are seeing?
 [2001-02-05 02:56 UTC] joey@php.net
I have been able to reproduce this on my Debian box using 4.0.5-dev.
Rasmus, you can contact me privately for an account.
 [2001-06-14 16:46 UTC] sniper@php.net
Duplicate of #9041

 [2001-06-14 16:56 UTC] liz at xcalibur dot demon dot co dot uk
This isnt a dup of 9041 as this wsa using apache where he said it DIDNT do it.

I have noticed it did appear to only be for me in that one version of PHP, although others have contacted me asking me if I had an answer, with different versions.
 [2002-02-09 19:51 UTC] mfischer@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Mar 12 11:01:32 2025 UTC