1--TEST--
2SplFileObject: fgetcsv() on a blank line
3--FILE--
4<?php
5
6$file = new SplTempFileObject();
7$file->setCsvControl(escape: "");
8
9// write to file
10$file->fwrite("");
11
12// read from file
13$file->rewind();
14var_dump($file->fgetcsv());
15
16$file->setFlags(SplFileObject::SKIP_EMPTY);
17$file->rewind();
18var_dump($file->fgetcsv());
19?>
20--EXPECT--
21array(1) {
22  [0]=>
23  NULL
24}
25bool(false)
26