php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15560 PHP path prints when PHP compiled as a CGI
Submitted: 2002-02-14 15:09 UTC Modified: 2002-02-15 13:05 UTC
From: caetin at u dot washington dot edu Assigned:
Status: Closed Package: Apache related
PHP Version: 4.1.1 OS: AIX
Private report: No CVE-ID: None
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 !
Your email address:
MUST BE VALID
Solve the problem:
48 - 1 = ?
Subscribe to this entry?

 
 [2002-02-14 15:09 UTC] caetin at u dot washington dot edu
I compiled 4.1.1 as a cgi, and whenever i put the path to PHP in #!/path/blah, it'll print out #!/path/blah as the first text of the file, then execute the script. If i take out the #!/path/blah, it will give me the normal cgi 500 error, premature end of script headers. This can be seen at http://students.washington.edu/caetin/blah.cgi , which contains: 

vergil01% cat blah.cgi
#!/nfs/guido01/dw05/d75/caetin/php

<?  phpinfo(); ?>

for example, i also made http://students.washington.edu/caetin/blah2.cgi which doesn't have the shebang. It gives the 500 error. 

Both files are chmod' to 755 as well. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-15 13:05 UTC] sander@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 07:01:27 2024 UTC