1--TEST--
2Bug #74614: Use-after-free in PHP7's unserialize()
3--FILE--
4<?php
5
6unserialize('a:3020000000000000000000000000000001:{i:0;a:0:{}i:1;i:2;i:2;i:3;i:3;i:4;i:4;i:5;i:5;i:6;i:6;i:7;i:7;i:8;i:8;R:2;}');
7
8?>
9--EXPECTF--
10Warning: unserialize(): %s in %sbug74614.php on line %d
11
12Warning: unserialize(): Error at offset 38 of 113 bytes in %s on line %d
13