mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
16 lines
265 B
PHP
16 lines
265 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());
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
int(2)
|