add failing test for SplFileObject::fgets implementation #3873
fix SplFileObject::fgets implementation #3873