Skip to content

Commit 2763efd

Browse files
SchrankFlyingmana
authored andcommitted
Fix Undefined property: DOMDocumentType::$entities
Notice: Undefined property: DOMDocumentType::$entities in /var/www/releases/99/pub/app/code/core/Zend/Xml/Security.php on line 110 Happens only on CGI with PHP CLI(?) can only reproduce on one server.
1 parent f1d7fde commit 2763efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Zend/Xml/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static function scan($xml, DOMDocument $dom = null)
107107
if (!self::isPhpFpm()) {
108108
foreach ($dom->childNodes as $child) {
109109
if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
110-
if ($child->entities->length > 0) {
110+
if (isset($child->entities) && $child->entities->length > 0) {
111111
libxml_disable_entity_loader($loadEntities);
112112
libxml_use_internal_errors($useInternalXmlErrors);
113113

0 commit comments

Comments
 (0)