#41293 [Ver->Asn]: HTTP_RAW_POST_DATA fails to ever be set

From: Date: Fri, 04 May 2007 23:26:58 +0000
Subject: #41293 [Ver->Asn]: HTTP_RAW_POST_DATA fails to ever be set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112275@lists.php.net to get a copy of this message
ID: 41293 Updated by: iliaa@php.net Reported By: jerome at rainstormconsulting dot com -Status: Verified +Status: Assigned Bug Type: HTTP related Operating System: linux (centos or ubuntu) PHP Version: 5.2.2 -Assigned To: +Assigned To: iliaa Previous Comments: ------------------------------------------------------------------------ [2007-05-04 21:13:59] sniper@php.net Only happens with RPC stuff. (soap / xml-rpc /..). php://input is not affected. ------------------------------------------------------------------------ [2007-05-04 19:50:32] jerome at rainstormconsulting dot com Description: ------------ PHP 5.2.2 fails to ever have $HTTP_RAW_POST_DATA set despite the ini setting to being On Reproduce code: --------------- Server: <?php $server = new SoapServer('myservice.wsdl'); $server->setClass('MyService'); $server->handle(); client: <?php $client = new SoapClient('myservice.wsdl', array('trace' => 1, 'exceptions' => 1)); try { $client->doSomething(); } catch(SoapFault $e) { print 'Service failure, error message: '.$e->faultstring; } Expected result: ---------------- This should proceed with no problems, an already working service setup in a web application, functioning on both PHP 5.1.6 and PHP 5.2.1 with no issues at all. Should produce no error. Actual result: -------------- Service failure, error message: Bad Request. Can't find HTTP_RAW_POST_DATA You USUALLY only see this if you access the server file (say xmlrpc.php) directly without posting any data. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41293&edit=1

« previous php.bugs (#112275) next »