PHP 4.0 Bug #8782: scripts run from CGI output "#!/usr/local/bin/php" line
| From: | verrue dot jean-pierre at cimafap dot msa dot fr | Date: | Thu, 18 Jan 2001 15:21:03 +0000 |
| Subject: | PHP 4.0 Bug #8782: scripts run from CGI output "#!/usr/local/bin/php" line | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44483@lists.php.net to get a copy of this message | ||
From: verrue.jean-pierre@cimafap.msa.fr
Operating system: AIX 4.3.2
PHP version: 4.0.4
PHP Bug Type: Performance problem
Bug description: scripts run from CGI output "#!/usr/local/bin/php" line
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?
--
Edit Bug report at: http://bugs.php.net/?id=8782&edit=1