Bug #60826 [PATCH]: raw POST data missing with chunked encoding, FastCGI

From: Date: Thu, 27 Feb 2020 17:50:23 +0000
Subject: Bug #60826 [PATCH]: raw POST data missing with chunked encoding, FastCGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225756@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60826&edit=1

 ID:                 60826
 Patch added by:     cmb@php.net
 Reported by:        clarkwise at gmail dot com
 Summary:            raw POST data missing with chunked encoding, FastCGI
 Status:             Not a bug
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   Windows XP
 PHP Version:        5.3.9
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: iis-cgi-chunked-poc
Revision:   1582825823
URL:        https://bugs.php.net/patch-display.php?bug=60826&patch=iis-cgi-chunked-poc&revision=1582825823


Previous Comments:
------------------------------------------------------------------------
[2018-02-05 09:03:17] sukarsa at ingenovie dot com

Hi,
Is there any solution to request with chunked encoding with php?
I observe that server is waiting indefinitely until client time-out and then process the packet with
empty body.
I'm using php 7.2 and I think it still have this problem.

------------------------------------------------------------------------
[2016-06-27 23:47:45] ravikumar dot nie at gmail dot com

Well I am still facing this problem.
Any hints to solve this issue.

I am using fastcgi and php and trying to read the POST Data sent as transfer-encoding:chunked.

Appreciate any help

------------------------------------------------------------------------
[2012-08-17 08:12:43] ab@php.net

at the end of the day, this is not a php bug

------------------------------------------------------------------------
[2012-05-30 21:10:19] dominic dot benson at thirdlight dot com

For Apache mod_fcgid, I have a patch available in the bug I filed at 
https://issues.apache.org/bugzilla/show_bug.cgi?id=53332

Essentially, PHP is following the spec, and not reading beyond the FastCGI 
CONTENT_LENGTH header value - so correct fixes are necessarily above PHP, in the 
FastCGI or web server implementation.

------------------------------------------------------------------------
[2012-04-23 14:34:00] andres at fenestrae dot com

@florian dot fernandez at navaho dot fr

Florian,

I'm afraid i cannot help you any further on Linux.
The solution is not specific for Windows.
What I did to tackle the problem at first is to write a small program that ran instead of php-cgi
which copied whatever it received on stdin to an other a mailslot.
This output I fed into php-cgi to reproduce an pinpoint the cause. 

Regards Andre

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=60826


--
Edit this bug report at https://bugs.php.net/bug.php?id=60826&edit=1


Thread (30 messages)

« previous php.bugs (#225756) next »