xref: /PHP-8.0/ext/spl/tests/bug71735.phpt (revision f7fbc633)
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--EXPECT--
13SplDoublyLinkedList::offsetSet(): Argument #1 ($index) is out of range
14