1--TEST--
2SPL: SplFileObject::setCsvControl error 003
3--CREDITS--
4Erwin Poeze <erwin.poeze at gmail.com>
5--INI--
6include_path=.
7--FILE--
8<?php
9file_put_contents('csv_control_data.csv',
10<<<CDATA
11'groene appelen'|10
12'gele bananen'|20
13'rode kersen'|30
14CDATA
15);
16$s = new SplFileObject('csv_control_data.csv');
17$s->setFlags(SplFileObject::READ_CSV);
18$s->setCsvControl('|', '\'', 'three');
19?>
20--CLEAN--
21<?php
22unlink('csv_control_data.csv');
23?>
24--EXPECTF--
25Warning: SplFileObject::setCsvControl(): escape must be a character in %s on line %d
26
27