Re: PHP 4.0 Bug #9041 Updated: Extra #! at top of web output.
| From: | Andrei Zmievski | Date: | Mon, 05 Feb 2001 21:16:05 +0000 |
| Subject: | Re: PHP 4.0 Bug #9041 Updated: Extra #! at top of web output. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45809@lists.php.net to get a copy of this message | ||
Actually PHP does check for #! in the first line and skips that line if
needed. It works on Linux and used to work on Solaris until 4.0.4pl1..
On Mon, 05 Feb 2001, jmoore@php.net wrote:
> ID: 9041
> Updated by: jmoore
> Reported By: john@cdproc.com
> Status: Analyzed
> Bug Type: *Configuration Issues
> Assigned To:
> Comments:
>
> This is caused by the fact that the #! is not inside <?php tags and thus isnt parsed by PHP,
> perhaps we can introduce a command line arg that ignores #! on the first line of a file perhaps
>
> php -c
>
> I dont think there is a special case yet atleast this certainly points to the fact there isnt.
>
> James
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-02-05 16:12:22] jmoore@php.net
> This is caused by the fact that the #! is not inside <?php tags and thus isnt parsed by PHP,
> perhaps we can introduce a command line arg that ignores #! on the first line of a file perhaps
>
> php -c
>
> I dont think there is a special case yet atleast this certainly points to the fact there isnt.
>
> James
>
> ---------------------------------------------------------------------------
>
> [2001-02-05 16:08:14] john@cdproc.com
> The retarded thing about this is that the EXACT SAME binary works fine when Apache calls it as
> a CGI. A simple /bin/sh CGI on both machines works correctly.
>
> I'm out of clues.
>
> ---------------------------------------------------------------------------
>
> [2001-01-31 17:52:09] john@cdproc.com
> Hello.
>
> I'm running PHP4 as a CGI under Netscape Enterprise.
>
> It's compiled with:
> './configure' '--prefix=/opt/php'
> '--with-config-file-path=/opt/php/etc' '--disable-pear'
> '--enable-discard-path' '--with-mysql=no' '--enable-trans-sid'
> '--with-oci8=/opt/oracle/8.1.7'
>
> Whenever I call a .cgi that has the #!/path/to/php syntax at the top, the output always has a
> '#!/path/to/php' line at the top.
>
> --- snip ----
> #!/opt/php/bin/php
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <html>
> <head><STYLE TYPE="text/css"><!--
> A { text-decoration: none; }
> --- clip ----
>
> My php.ini is pretty default. There's no doc_root specified when this happens.
>
> I would think that PHP wouldn't want to include this extra line.
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=9041&edit=2
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
-Andrei
"Everything has its wonders, even darkness and silence, and I learn,
whatever state I may be in, therein to be content." - Helen Keller