--TEST-- SPL: CachingIterator::hasNext() --FILE-- $v) { echo "$k=>$v\n"; echo "hasNext: " . ($it->getInnerIterator()->hasNext() ? "yes" : "no") . "\n"; } ?> ===DONE=== --EXPECTF-- 0=>1 hasNext: yes 1=>2 hasNext: yes Notice: Array to string conversion in %siterator_026.php on line %d 0=>31 hasNext: yes 1=>32 hasNext: yes Notice: Array to string conversion in %siterator_026.php on line %d 0=>331 hasNext: no 3=>4 hasNext: no ===DONE===