1--TEST--
2php-dev@php.gr.jp #884 (2)
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
8?>
9--FILE--
10<?php
11var_dump(mb_ereg_replace("C?$", "Z", "ABC"));
12var_dump(preg_replace("/C?$/", "Z", "ABC"));
13var_dump(mb_ereg_replace("C*$", "Z", "ABC"));
14var_dump(preg_replace("/C*$/", "Z", "ABC"));
15?>
16--EXPECT--
17string(4) "ABZZ"
18string(4) "ABZZ"
19string(4) "ABZZ"
20string(4) "ABZZ"
21