Integer overflow in the php_escape_html_entities_ex function in ext/standard/html.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact by triggering a large output string from a FILTER_SANITIZE_FULL_SPECIAL_CHARS filter_var call. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-5094.
https://gist.github.com/8ef775c117d84ff15185953990a28576
https://bugs.php.net/bug.php?id=72135
http://www.securityfocus.com/bid/92144
http://www.openwall.com/lists/oss-security/2016/05/26/3