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