Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit e2fdffd

Browse files

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"php": ">=5.3.3",
1616
"zendframework/zend-http": "self.version",
1717
"zendframework/zend-math": "self.version",
18-
"zendframework/zend-server": "self.version"
18+
"zendframework/zend-server": "self.version",
19+
"zendframework/zend-stdlib": "self.version"
1920
},
2021
"homepage": "https://github.com/zendframework/zend-xml-rpc",
2122
"autoload-dev": {

src/Request/Http.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace Zend\XmlRpc\Request;
1212

13+
use Zend\Stdlib\ErrorHandler;
1314
use Zend\XmlRpc\Fault;
1415
use Zend\XmlRpc\Request as XmlRpcRequest;
1516

@@ -47,7 +48,9 @@ class Http extends XmlRpcRequest
4748
*/
4849
public function __construct()
4950
{
50-
$xml = @file_get_contents('php://input');
51+
ErrorHandler::start();
52+
$xml = file_get_contents('php://input');
53+
ErrorHandler::stop();
5154
if (!$xml) {
5255
$this->fault = new Fault(630);
5356
return;

0 commit comments

Comments
 (0)