xref: /PHP-7.2/ext/spl/tests/bug71735.phpt (revision f1d7e3ca)
1--TEST--
2Bug #71735 (Double-free in SplDoublyLinkedList::offsetSet)
3--FILE--
4<?php
5try {
6$var_1=new SplStack();
7$var_1->offsetSet(100,new DateTime('2000-01-01'));
8} catch(OutOfRangeException $e) {
9	print $e->getMessage()."\n";
10}
11?>
12===DONE===
13--EXPECT--
14Offset invalid or out of range
15===DONE===
16