mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
7790ee8736
Introduced by GH-10049
19 lines
370 B
PHP
19 lines
370 B
PHP
--TEST--
|
|
Bug #79836 (use-after-free in concat_function)
|
|
--INI--
|
|
memory_limit=10M
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
public function __toString() {
|
|
return str_repeat('a', 10);
|
|
}
|
|
}
|
|
|
|
$i = str_repeat('a', 5 * 1024 * 1024);
|
|
$e = new Foo();
|
|
$e .= $i;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
|