mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
16 lines
382 B
PHP
16 lines
382 B
PHP
--TEST--
|
|
Bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(mb_ereg("()0\xfc00000\xfc00000\xfc00000\xfc",""));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
|
|
bool(false)
|