source: src/router/php7/ext/mbstring/tests/bug69151.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 462 bytes
Line 
1--TEST--
2Bug #69151 (mb_ereg should reject ill-formed byte sequence)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7$str = "\x80";
8var_dump(
9    false === mb_eregi('.', $str, $matches),
10    [] === $matches,
11    NULL === mb_ereg_replace('.', "\\0", $str),
12    false === mb_ereg_search_init("\x80", '.'),
13    false === mb_ereg_search()
14);
15?>
16--EXPECT--
17bool(true)
18bool(true)
19bool(true)
20bool(true)
21bool(true)
Note: See TracBrowser for help on using the repository browser.