xref: /PHP-7.4/Zend/tests/bug73900.phpt (revision 2fddc4a7)
1--TEST--
2Bug #73900: Use After Free in unserialize() SplFixedArray
3--FILE--
4<?php
5
6$a = new stdClass;
7$b = new SplFixedArray(1);
8$b[0] = $a;
9$c = &$b[0];
10var_dump($c);
11
12?>
13--EXPECT--
14object(stdClass)#1 (0) {
15}
16