1--TEST-- 2Bug #69151 (mb_ereg should reject ill-formed byte sequence) 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 10$str = "\x80"; 11var_dump( 12 false === mb_eregi('.', $str, $matches), 13 [] === $matches, 14 NULL === mb_ereg_replace('.', "\\0", $str), 15 false === mb_ereg_search_init("\x80", '.'), 16 false === mb_ereg_search() 17); 18?> 19--EXPECT-- 20bool(true) 21bool(true) 22bool(true) 23bool(true) 24bool(true) 25