1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/mbstring/tests/bug72399.phpt
Christoph M. Becker a003af5b62 Add missing skip conditions
mbstring can be built without mbregex support, in which case these
tests would fail.  Thus we add respective skip conditions.
2018-08-05 00:01:35 +02:00

16 lines
389 B
PHP

--TEST--
Bug #72399 (Use-After-Free in MBString (search_re))
--SKIPIF--
<?php
require 'skipif.inc';
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
?>
--FILE--
<?php
$var5 = mb_ereg_search_init("","2");
$var6 = mb_eregi_replace("2","","");
$var13 = mb_ereg_search_pos();
?>
--EXPECTF--
Warning: mb_ereg_search_pos(): No regex given in %sbug72399.php on line %d