1--TEST-- 2SplFileObject::fgetcsv with default escape character 3--FILE-- 4<?php 5$fp = fopen('SplFileObject__fgetcsv7.csv', 'w+'); 6fwrite($fp, '"aa\"","bb","\"c"'); 7fclose($fp); 8 9$fo = new SplFileObject('SplFileObject__fgetcsv7.csv'); 10var_dump($fo->fgetcsv()); 11?> 12--CLEAN-- 13<?php 14unlink('SplFileObject__fgetcsv7.csv'); 15?> 16--EXPECTF-- 17Deprecated: SplFileObject::fgetcsv(): the $escape parameter must be provided, as its default value will change, either explicitly or via SplFileObject::setCsvControl() in %s on line %d 18array(3) { 19 [0]=> 20 string(4) "aa\"" 21 [1]=> 22 string(2) "bb" 23 [2]=> 24 string(3) "\"c" 25} 26