xref: /PHP-8.3/ext/spl/tests/bug76367.phpt (revision f8d79582)
1--TEST--
2Bug #76367 (NoRewindIterator segfault 11)
3--FILE--
4<?php
5$arr = [1,3,55,66,43,6];
6
7$iter = new NoRewindIterator(new ArrayIterator($arr));
8
9while($iter->valid()) {
10        $iter->next();
11}
12
13var_dump($iter->current());
14?>
15--EXPECT--
16NULL
17