Implement SplFileObject::SKIP_EMPTY

Also fix a bug, where READ_AHEAD would cause an endless loop when iterating over an SplFileObject,
caused by rtrim() on false.

Fixes #4285

Test Plan:
slow tests & zend/good/ext/spl