bug62616.phpt 265 B

123456789101112131415
  1. --TEST--
  2. Bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)
  3. --FILE--
  4. <?php
  5. $ai = new ArrayIterator(array(0,1));
  6. var_dump($ai->count());
  7. $ii = new IteratorIterator($ai);
  8. var_dump($ii->count());
  9. ?>
  10. --EXPECT--
  11. int(2)
  12. int(2)