mirror of
https://github.com/php/php-src.git
synced 2024-10-03 07:46:12 +00:00
16 lines
266 B
PHP
16 lines
266 B
PHP
--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)
|