1--TEST-- 2Bug #72164 (Null Pointer Dereference - mb_ereg_replace) 3--SKIPIF-- 4<?php 5extension_loaded('mbstring') or die('skip mbstring not available'); 6if (!function_exists('mb_ereg')) die('skip mbregex support not available'); 7?> 8--FILE-- 9<?php 10$var0 = "e"; 11$var2 = ""; 12$var3 = NULL; 13$var8 = mb_ereg_replace($var2,$var3,$var3,$var0); 14var_dump($var8); 15?> 16--EXPECTF-- 17Deprecated: mb_ereg_replace(): The 'e' option is deprecated, use mb_ereg_replace_callback instead in %s%ebug72164.php on line %d 18string(0) "" 19