import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -34,7 +34,7 @@ require_once 'Zend/XmlRpc/Request.php';
|
||||
* @package Zend_XmlRpc
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Http.php 16208 2009-06-21 19:19:26Z thomas $
|
||||
* @version $Id: Http.php 18443 2009-09-30 13:35:47Z lars $
|
||||
*/
|
||||
class Zend_XmlRpc_Request_Http extends Zend_XmlRpc_Request
|
||||
{
|
||||
@ -61,18 +61,13 @@ class Zend_XmlRpc_Request_Http extends Zend_XmlRpc_Request
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$fh = fopen('php://input', 'r');
|
||||
if (!$fh) {
|
||||
$this->_fault = new Zend_XmlRpc_Server_Exception(630);
|
||||
$xml = @file_get_contents('php://input');
|
||||
if (!$xml) {
|
||||
require_once 'Zend/XmlRpc/Fault.php';
|
||||
$this->_fault = new Zend_XmlRpc_Fault(630);
|
||||
return;
|
||||
}
|
||||
|
||||
$xml = '';
|
||||
while (!feof($fh)) {
|
||||
$xml .= fgets($fh);
|
||||
}
|
||||
fclose($fh);
|
||||
|
||||
$this->_xml = $xml;
|
||||
|
||||
$this->loadXml($xml);
|
||||
|
Reference in New Issue
Block a user