1--TEST--
2php-dev@php.gr.jp #884 (1)
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip mbstring not available');
6function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
7?>
8--FILE--
9<?php
10set_time_limit(2);
11var_dump(preg_replace("/.*/", "b", "a"));
12var_dump(mb_ereg_replace(".*", "b", "a"));
13?>
14--EXPECT--
15string(2) "bb"
16string(2) "bb"
17