mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
21 lines
601 B
PHP
21 lines
601 B
PHP
--TEST--
|
|
mb_eregi_replace() doesn't reach hard limit
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists("mb_eregi_replace")) die("skip mbregex support unavailable");
|
|
?>
|
|
--INI--
|
|
memory_limit=8M
|
|
--FILE--
|
|
<?php
|
|
// 2 MB == memory_limit / 4
|
|
mb_eregi_replace("a", "bbbbbbbbbb", str_repeat("a", 2 * 1024 * 1024));
|
|
echo "not reached\n";
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Function mb_eregi_replace() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
|
|
|
|
Fatal error: Allowed memory size of 8388608 bytes exhausted %S(tried to allocate %d bytes) in %s on line %d
|