xref: /PHP-7.2/ext/spl/tests/bug62616.phpt (revision 777b6679)
1--TEST--
2Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)
3--FILE--
4<?php
5$ai = new ArrayIterator(array(0,1));
6
7var_dump($ai->count());
8
9$ii = new IteratorIterator($ai);
10
11var_dump($ii->count());
12?>
13--EXPECTF--
14int(2)
15int(2)
16