php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9487 POST using HTTP/1.0 HTTP/1.1 mix makes PHP crash
Submitted: 2001-02-27 16:39 UTC Modified: 2001-04-10 10:13 UTC
From: dolecek at ics dot muni dot cz Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: NetBSD 1.5S (-current)
Private report: No CVE-ID: None
 [2001-02-27 16:39 UTC] dolecek at ics dot muni dot cz
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-03 20:05 UTC] sniper@php.net
Please provide that whole backtrace.

--Jani

 [2001-04-10 10:13 UTC] sniper@php.net
No feedback. If this happens also with soon to be released 
PHP 4.0.5, reopen this bug report with proper GDB backtrace
PHP configured with --enable-debug

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:27 2024 UTC