mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
Merge branch 'PHP-7.0' into PHP-7.1
This commit is contained in:
commit
94b66b8793
17
ext/mbstring/tests/bug72994.phpt
Normal file
17
ext/mbstring/tests/bug72994.phpt
Normal file
@ -0,0 +1,17 @@
|
||||
--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===
|
Loading…
Reference in New Issue
Block a user