Skip to content

Commit c8359fc

Browse files
committed
Fix test after unserialize change
1 parent 4377a8e commit c8359fc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Zend/tests/bug70253.phpt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
--TEST--
22
Bug #70253 (segfault at _efree () in zend_alloc.c:1389)
3-
--INI--
4-
memory_limit=2M
5-
--SKIPIF--
6-
<?php
7-
$zend_mm_enabled = getenv("USE_ZEND_ALLOC");
8-
if ($zend_mm_enabled === "0") {
9-
die("skip Zend MM disabled");
10-
}
11-
?>
123
--FILE--
134
<?php
145
unserialize('a:2:{i:0;O:9:"000000000":10000000');
156
?>
167
--EXPECTF--
17-
Fatal error: Allowed memory size of 2097152 bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
8+
Notice: unserialize(): Error at offset 33 of 33 bytes in %s on line %d

0 commit comments

Comments
 (0)