Revert "DEBUG HACK: error checking for xml_parse in XMPPHP input stream"

This reverts commit 906450e2f5.

1) It was a quick debug hack 2) it doesn't meet the requirements
for changing extlib/ libraries
This commit is contained in:
Evan Prodromou 2010-01-20 15:56:24 -05:00
parent 2a3cb86e29
commit 7679f058ef
1 changed files with 2 additions and 12 deletions

View File

@ -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);
}
/**