* 用preg_match替换

if (!function_exists("ereg")) {
	function ereg(string $pattern, string $string, array &$regs = []) {
		return preg_match('/'. str_replace('/', '\\/', $pattern).'/', $string, $regs);
	}
}

if (!function_exists("eregi")) {
	function eregi(string $pattern, string $string, array &$regs = []) {
		return preg_match('/'. str_replace('/', '\\/', $pattern).'/i', $string, $regs);
	}
}

http://php.net/manual/en/function.ereg.php

http://php.net/manual/en/function.preg-match.php