SplFileObject iterator should stop at eof

Fixes https://bugs.php.net/bug.php?id=68466