mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
0c98f51c84
<https://wiki.php.net/rfc/deprecate_mb_ereg_replace_eval_option> has been accepted, so we implement it.
16 lines
429 B
PHP
16 lines
429 B
PHP
--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);
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: mbereg_replace(): The 'e' option is deprecated, use mb_ereg_replace_callback instead in %s%ebug72164.php on line %d
|
|
string(0) ""
|