mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
b7259b71b4
We're backporting commit 999a3553 to the still supported PHP 5.6.
18 lines
426 B
PHP
18 lines
426 B
PHP
--TEST--
|
|
Bug #72994 (mbc_to_code() out of bounds read)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
|
|
if (!function_exists('mbereg_replace')) die('skip mbereg_replace() not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$var1 = mbereg_replace($var-232338951,NULL,NULL,NULL);
|
|
var_dump($var1);
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Notice: Undefined variable: var in %s on line %d
|
|
string(0) ""
|
|
===DONE===
|