Edit report at http://bugs.php.net/bug.php?id=41293&edit=1
ID: 41293 Comment by: php at yahoo dot com Reported by: jerome at rainstormconsulting dot com Summary: HTTP_RAW_POST_DATA fails to ever be set Status: Closed Type: Bug Package: HTTP related Operating System: linux (centos or ubuntu) PHP Version: 5.2.2 Assigned To: iliaa Block user comment: N Private report: N New Comment: Thank you all Previous Comments: ------------------------------------------------------------------------ [2007-05-06 16:34:21] [email protected] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2007-05-06 14:06:40] sylvain at jamendo dot com I used the same fix as Jerome, if (phpversion()=="5.2.2") $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input"); Anyway, this seems like a duplicate of a bug that appeared in 5.1.0 (cf changelog) I just can't believe there is no unit tests for this kind of bugs that should never ever appear again. ------------------------------------------------------------------------ [2007-05-06 13:42:54] jerome at rainstormconsulting dot com Putting this in a file all my services include seems to be working, but I only did this on a test machine, i will not upgrade our production server until this is resolved though. if (!isset($HTTP_RAW_POST_DATA)){ $HTTP_RAW_POST_DATA = file_get_contents('php://input'); } ------------------------------------------------------------------------ [2007-05-06 13:35:26] sylvain at jamendo dot com Are you aware that this is a *major* issue? All our xmlrpc backends are broken because of this bug, both with pear XML_RPC and XML_RPC2. Is there a workaround besides php://input ? ------------------------------------------------------------------------ [2007-05-05 14:10:44] develar at gmail dot com >> php://input is not affected only in start script, but in end script php://input is empty. ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=41293 -- Edit this bug report at http://bugs.php.net/bug.php?id=41293&edit=1
