1--TEST--
2SplFileObject::fgetcsv() escape error
3--FILE--
4<?php
5$fp = fopen('SplFileObject__fgetcsv8.csv', 'w+');
6fwrite($fp, '"aaa","b""bb","ccc"');
7fclose($fp);
8
9$fo = new SplFileObject('SplFileObject__fgetcsv8.csv');
10try {
11    var_dump($fo->fgetcsv(',', '"', 'invalid'));
12} catch (ValueError $e) {
13    echo $e->getMessage(), "\n";
14}
15?>
16--CLEAN--
17<?php
18unlink('SplFileObject__fgetcsv8.csv');
19?>
20--EXPECT--
21SplFileObject::fgetcsv(): Argument #3 ($escape) must be empty or a single character
22