diff options
Diffstat (limited to 'ext/mbstring/tests/bug72164.phpt')
-rw-r--r-- | ext/mbstring/tests/bug72164.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/mbstring/tests/bug72164.phpt b/ext/mbstring/tests/bug72164.phpt new file mode 100644 index 0000000000..bd58f7e5a5 --- /dev/null +++ b/ext/mbstring/tests/bug72164.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #72164 (Null Pointer Dereference - mb_ereg_replace) +--SKIPIF-- +<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?> +--FILE-- +<?php +$var0 = "e"; +$var2 = ""; +$var3 = NULL; +$var8 = mbereg_replace($var2,$var3,$var3,$var0); +var_dump($var8); +?> +--EXPECT-- +string(0) "" |