xref: /PHP-8.4/ext/spl/tests/bug62616.phpt (revision ded3d984)
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--EXPECT--
14int(2)
15int(2)
16