Integer overflow in the php_filter_encode_url function in ext/filter/sanitizing_filters.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 string, leading to a heap-based buffer overflow.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2016-5345
https://bugs.php.net/bug.php?id=71637