1--TEST-- 2Bug #77371 (heap buffer overflow in mb regex functions - compile_string_node) 3--SKIPIF-- 4<?php 5if (!extension_loaded('mbstring')) die('skip mbstring extension not available'); 6if (!function_exists('mb_ereg')) die('skip mb_ereg() not available'); 7?> 8--FILE-- 9<?php 10var_dump(mb_ereg("()0\xfc00000\xfc00000\xfc00000\xfc","")); 11?> 12--EXPECTF-- 13Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d 14bool(false) 15