xref: /PHP-7.1/Zend/tests/bug70253.phpt (revision a089ce0c)
1--TEST--
2Bug #70253 (segfault at _efree () in zend_alloc.c:1389)
3--INI--
4memory_limit=2M
5--SKIPIF--
6<?php
7$zend_mm_enabled = getenv("USE_ZEND_ALLOC");
8if ($zend_mm_enabled === "0") {
9	die("skip Zend MM disabled");
10}
11?>
12--FILE--
13<?php
14unserialize('a:2:{i:0;O:9:"000000000":10000000');
15?>
16--EXPECTF--
17Fatal error: Allowed memory size of 2097152 bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
18