RE: [PHP] Opensuse 11.4 - PHP returned as text?
| From: | HallMarc Websites | Date: | Mon, 28 Mar 2011 15:47:38 +0000 |
| Subject: | RE: [PHP] Opensuse 11.4 - PHP returned as text? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312097@lists.php.net to get a copy of this message | ||
> Thanks for your interest.
> Here is my complete test php file:
>
> <?php
> echo "crash test<br />";
> $cont = "<form action='".$_SERVER['PHP_SELF']."'
> method='POST'> <input
> type='submit' name='button' value='submit' />
> </form>"; echo $cont; echo
> "ended<br />"; ?>
>
> Running this file produces the form correctly at first. Then click submit
and
> the response of the server is to send the next page as text.
>
> In the background a child process dies. I guess this severs the link to
the php
> handler. If httpd is run with -X to generate a single process, this
process dies
> and the server stops, with no effort to serve up a file of any kind.
>
> If I take the above file and convert to regular html, same behaviour.
> This is why I say it has little to do with PHP. However if used in
connection
> with php it can result in some nasty security implications.
>
> I did try adding enctype, but this did not help. I think this is because
the
> process is killed very early in dealing with the post method and never
gets to
> formulating something to send back.
>
> I did get a backtrace from gdb, and this is posted on the
issues.apache.org
> website.
>
Well, I can't say I have time to search issues.apache.org for this and I
have to drop out of this thread as a huge project just appeared on my desk.