1--TEST-- 2SPL: SplFileObject::next variation 002, read ahead 3--CREDITS-- 4Ricardo Oedietram <ricardo@odracir.nl> 5Erwin Poeze <erwin.poeze@gmail.com> 6#PFZ June PHP TestFest 2012 7--FILE-- 8<?php 9//line 2 10//line 3 11//line 4 12//line 5 13$s = new SplFileObject(__FILE__); 14$s->seek(2); 15echo $s->current(); 16$s->next(); 17echo $s->current(); 18 19$s->setFlags(SplFileObject::READ_AHEAD); 20 21$s->seek(2); 22echo $s->current(); 23$s->next(); 24echo $s->current(); 25?> 26--EXPECT-- 27//line 3 28//line 4 29//line 3 30//line 4 31