--TEST-- Bug #80933 (SplFileObject::DROP_NEW_LINE is broken for NUL and CR) --FILE-- fwrite($line); $temp->rewind(); $read = $temp->fgets(); var_dump($line === $read); $temp->rewind(); $temp->setFlags(SplFileObject::DROP_NEW_LINE); $read = $temp->fgets(); var_dump($line === $read); } ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true)