Skip to content

Commit 5f17545

Browse files
committed
MAGETWO-44919: [HHVM] hphp_invoke error when Web Setup
- ignoring validateDOM, if libxml_set_external_entity_loader does not exist, for eg for HHVM
1 parent 16dc76d commit 5f17545

File tree

1 file changed

+4
-0
lines changed
  • lib/internal/Magento/Framework/Config

1 file changed

+4
-0
lines changed

lib/internal/Magento/Framework/Config/Dom.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ public static function validateDomDocument(
276276
$schema,
277277
$errorFormat = self::ERROR_FORMAT_DEFAULT
278278
) {
279+
if (!function_exists('libxml_set_external_entity_loader')) {
280+
return [];
281+
}
282+
279283
if (!self::$urnResolver) {
280284
self::$urnResolver = new UrnResolver();
281285
}

0 commit comments

Comments
 (0)