summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug62616.phpt
blob: 4e4be94491e7133eba49aadb7fa11ba1c31fd250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)
--FILE--
<?php
$ai = new ArrayIterator(array(0,1));

var_dump($ai->count());

$ii = new IteratorIterator($ai);

var_dump($ii->count());
?>
--EXPECTF--
int(2)
int(2)