php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8782 scripts run from CGI output "#!/usr/local/bin/php" line
Submitted: 2001-01-18 10:21 UTC Modified: 2002-02-09 19:51 UTC
From: verrue dot jean-pierre at cimafap dot msa dot fr Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.4 OS: AIX 4.3.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: verrue dot jean-pierre at cimafap dot msa dot fr
New email:
PHP Version: OS:

 

 [2001-01-18 10:21 UTC] verrue dot jean-pierre at cimafap dot msa dot fr
I have the same problem as that described in bug # 7503.
I use cgi PHP with Netscape E.S. 3.51 on AIX 4.3.2.
I always obtain line "#!/lusr/local/bin/php" at the beginning of HTML page
produced by PHP.
I was read all the posts relating to this bug and I circumvented
the difficulty like this: I modified the file cgi_main.c by recopying the lines
related to /* #!php support */
in the first 'if' 'if (cgi && !file_handle.handle.fp) {...'
On the other hand, when I test PHP directly under Shell all is well.
I noted that the program does not pass in same the branch of the 'if' according to whether one calls upon it in Shell or cgi.

Ideas?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-25 12:29 UTC] cynic@php.net
duplicate of #8898
 [2002-02-09 19:51 UTC] mfischer@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 19:01:32 2024 UTC