summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-20 15:56:24 -0500
committerEvan Prodromou <evan@status.net>2010-01-20 15:56:24 -0500
commit7679f058efc43137519167f0e862f89475d43d6f (patch)
treec62390efa3293e1904e2808e6d3bf963b0a73ab3
parent2a3cb86e29e7b0d43c4a6f22dc84462c9e6227a0 (diff)
Revert "DEBUG HACK: error checking for xml_parse in XMPPHP input stream"
This reverts commit 906450e2f5b78a1c6f2dec2e21b9b5841df210f4. 1) It was a quick debug hack 2) it doesn't meet the requirements for changing extlib/ libraries
-rw-r--r--extlib/XMPPHP/XMLStream.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php
index dbc4719e4..d33411ec5 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);
}
/**