1--TEST--
2Unserialize leak in SplObjectStorage
3--FILE--
4<?php
5
6$payload = 'C:16:"SplObjectStorage":113:{x:i:2;O:8:"stdClass":1:{},a:2:{s:4:"prev";i:2;s:4:"next";O:8:"stdClass":0:{}};r:7;,R:2;s:4:"next";;r:3;};m:a:0:{}}';
7try {
8    var_dump(unserialize($payload));
9} catch (Exception $e) {
10    echo $e->getMessage(), "\n";
11}
12
13?>
14--EXPECTF--
15Warning: SplObjectStorage::unserialize(): Unexpected end of serialized data in %s on line %d
16Error at offset 24 of 113 bytes
17