X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FXMPPHP%2FXMLStream.php;h=d33411ec54140dafc1c527c946d05cbc931807c9;hb=1a86bf9c65d2579d9245c6edcc968fed3d674f39;hp=dbc4719e427f43bd223504d115d3e44dd427c9f7;hpb=2a3cb86e29e7b0d43c4a6f22dc84462c9e6227a0;p=quix0rs-gnu-social.git diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index dbc4719e42..d33411ec54 100644 --- a/extlib/XMPPHP/XMLStream.php +++ b/extlib/XMPPHP/XMLStream.php @@ -417,12 +417,7 @@ class XMPPHP_XMLStream { } } $this->log->log("RECV: $buff", XMPPHP_Log::LEVEL_VERBOSE); - $ok = xml_parse($this->parser, $buff, false); - if (!$ok) { - $errcode = xml_get_error_code($this->parser); - $errstr = xml_error_string($errcode); - $this->log->log("XML ERROR: $errstr", XMPPHP_Log::LEVEL_VERBOSE); - } + xml_parse($this->parser, $buff, false); } else { # $updated == 0 means no changes during timeout. } @@ -676,12 +671,7 @@ class XMPPHP_XMLStream { } } $this->log->log("RECV: $buff", XMPPHP_Log::LEVEL_VERBOSE); - $ok = xml_parse($this->parser, $buff, false); - if (!$ok) { - $errcode = xml_get_error_code($this->parser); - $errstr = xml_error_string($errcode); - $this->log->log("XML ERROR: $errstr", XMPPHP_Log::LEVEL_VERBOSE); - } + xml_parse($this->parser, $buff, false); } /**