Skip to content

Commit

Permalink
Fix Reader test for hhvm.
Browse files Browse the repository at this point in the history
  • Loading branch information
mermshaus committed Feb 14, 2016
1 parent c7d300e commit 32c643a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Kaloa/Xmp/Reader.php
Expand Up @@ -223,7 +223,12 @@ public function getXmpDocument($stream)

try {
$dom = new DOMDocument();
$dom->loadXML($this->buffer);
$ret = $dom->loadXML($this->buffer);

// Added to make testErroneousXmpDataThrowsException work with hhvm
if (false === $ret) {
throw new Exception('loadXML returned false.');
}
} catch (Exception $e) {
// Finally
restore_error_handler();
Expand Down

0 comments on commit 32c643a

Please sign in to comment.