summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug76367.phpt
blob: f34e8a39defcf8c925257bfcbfaa07b01d3e107c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #76367 (NoRewindIterator segfault 11)
--FILE--
<?php
$arr = [1,3,55,66,43,6];

$iter = new NoRewindIterator(new ArrayIterator($arr));

while($iter->valid()) {
	    $iter->next();
}

var_dump($iter->current()); 
?>
--EXPECT--
NULL