Fix a possible infinite loop.

This commit is contained in:
Naofumi 2019-11-01 07:59:07 +09:00
commit 51101c8060

View file

@ -81,7 +81,9 @@ class Operator implements XmlDeserializable {
$operator->arguments[] = $argument['value']; $operator->arguments[] = $argument['value'];
} }
} else { } else {
$reader->read(); if (!$reader->read()) {
break;
}
} }
} while ($reader->nodeType !== Reader::END_ELEMENT); } while ($reader->nodeType !== Reader::END_ELEMENT);