1--TEST--
2Reference to SplObjectStorage key (not supported)
3--FILE--
4<?php
5
6$inner = 'x:i:1;O:8:"stdClass":0:{};m:a:0:{}';
7$inner_len = strlen($inner);
8$str = <<<STR
9a:2:{i:0;C:16:"SPlObjectStorage":{$inner_len}:{{$inner}}i:1;R:4;}
10STR;
11var_dump(unserialize($str));
12
13?>
14--EXPECT--
15array(2) {
16  [0]=>
17  object(SplObjectStorage)#1 (1) {
18    ["storage":"SplObjectStorage":private]=>
19    array(1) {
20      [0]=>
21      array(2) {
22        ["obj"]=>
23        object(stdClass)#2 (0) {
24        }
25        ["inf"]=>
26        NULL
27      }
28    }
29  }
30  [1]=>
31  object(stdClass)#2 (0) {
32  }
33}
34