Req #51191 [NEW]: Request body is 0-size when chunked requests are used

From: Date: Wed, 03 Mar 2010 04:55:23 +0000
Subject: Req #51191 [NEW]: Request body is 0-size when chunked requests are used
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148200@lists.php.net to get a copy of this message
From: Operating system: Any PHP version: 5.3.1 Package: Apache2 related} Bug Type: Feature/Change Request Bug description:Request body is 0-size when chunked requests are used Description: ------------ Disclaimer: I'm not 100% sure if this is a PHP-FCGI bug. When (PUT-) HTTP requests are made and encoded as Transfer-Encoding: Chunked, PHP never receives the request body, e.g.: echo strlen(fopen('php://input','r')); will yield 0. Chunked Transfer Encoding is used by the OS/X Finder WebDAV client. It works correctly when mod_php is used, but fails with FastCGI. Nginx and Lighttpd don't support this at all, and return 411 Length Required, which still sucks, but is better than silently failing. Test script: --------------- echo strlen(fopen('php://input','r')); Expected result: ---------------- size of the request body Actual result: -------------- 0 -- Edit bug report at http://bugs.php.net/bug.php?id=51191&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51191&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51191&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51191&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51191&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51191&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51191&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51191&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51191&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51191&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51191&r=support Expected behavior: http://bugs.php.net/fix.php?id=51191&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51191&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51191&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51191&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51191&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51191&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51191&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51191&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51191&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51191&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51191&r=mysqlcfg

« previous php.bugs (#148200) next »