xref: /PHP-7.0/ext/mbstring/tests/bug72164.phpt (revision 395863b1)
1--TEST--
2Bug #72164 (Null Pointer Dereference - mb_ereg_replace)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7$var0 = "e";
8$var2 = "";
9$var3 = NULL;
10$var8 = mbereg_replace($var2,$var3,$var3,$var0);
11var_dump($var8);
12?>
13--EXPECT--
14string(0) ""
15