Fix a possible infinite loop.

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

View file

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