Integer overflow in the xml_utf8_encode function in ext/xml/xml.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long argument to the utf8_encode function, leading to a heap-based buffer overflow.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2016-5344
https://bugs.php.net/bug.php?id=71637