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