PHP 4.0 Bug #9487: POST using HTTP/1.0 HTTP/1.1 mix makes PHP crash
| From: | dolecek at ics dot muni dot cz | Date: | Tue, 27 Feb 2001 21:39:25 +0000 |
| Subject: | PHP 4.0 Bug #9487: POST using HTTP/1.0 HTTP/1.1 mix makes PHP crash | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47643@lists.php.net to get a copy of this message | ||
From: dolecek@ics.muni.cz
Operating system: NetBSD 1.5S (-current)
PHP version: 4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description: POST using HTTP/1.0 HTTP/1.1 mix makes PHP crash
I'm using Apache 1.3.17, PHP 4.0.4pl1.
Seems like PHP doesn't like some POST data if they
are send via HTTP/1.0 and HTTP/1.1 in different requests.
The script in question is like this (name: var.php):
<FORM NAME="FORM_POST" ACTION="var.php" METHOD=POST>
Form with POST:<INPUT TYPE=SUBMIT NAME="TEST" VALUE="+ìèøýáíé">
</FORM>
The way to crash PHP:
1) in HTTP/1.0 browser (like Netscape 4.76), click on the submit
button couple of times,
enough so that the POST request got to each running httpd
daemon
2) do HTTP/1.1 request, possibly via telnet, like:
POST /var.php HTTP/1.1
Host: localhost
Content-Length: 1
at this point, server should wait for the data, but it crashes
instead. If I look at traceback in gdb, it crashes in _efree()
(I can provide the exact backtrace if needed).
If the bug is not repeatable for you and would need some more information, feel free to contact me.
--
Edit Bug report at: http://bugs.php.net/?id=9487&edit=1