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

Commit

Permalink
Merge pull request zendframework/zendframework#2210 from weierophinne…
Browse files Browse the repository at this point in the history
…y/hotfix/remove-suppression-operator

Get rid of error suppression
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"php": ">=5.3.3",
"zendframework/zend-http": "self.version",
"zendframework/zend-math": "self.version",
"zendframework/zend-server": "self.version"
"zendframework/zend-server": "self.version",
"zendframework/zend-stdlib": "self.version"
},
"homepage": "https://github.com/zendframework/zend-xml-rpc",
"autoload-dev": {
Expand Down
5 changes: 4 additions & 1 deletion src/Request/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Zend\XmlRpc\Request;

use Zend\Stdlib\ErrorHandler;
use Zend\XmlRpc\Fault;
use Zend\XmlRpc\Request as XmlRpcRequest;

Expand Down Expand Up @@ -47,7 +48,9 @@ class Http extends XmlRpcRequest
*/
public function __construct()
{
$xml = @file_get_contents('php://input');
ErrorHandler::start();
$xml = file_get_contents('php://input');
ErrorHandler::stop();
if (!$xml) {
$this->fault = new Fault(630);
return;
Expand Down

0 comments on commit e2fdffd

Please sign in to comment.