1--TEST-- 2SplFileObject::fgetcsv() with empty $escape 3--FILE-- 4<?php 5$contents = <<<EOS 6"cell1","cell2\\","cell3","cell4" 7"\\\\\\line1 8line2\\\\\\" 9EOS; 10$file = new SplTempFileObject; 11$file->fwrite($contents); 12$file->rewind(); 13while (($data = $file->fgetcsv(',', '"', ''))) { 14 print_r($data); 15} 16?> 17--EXPECT-- 18Array 19( 20 [0] => cell1 21 [1] => cell2\ 22 [2] => cell3 23 [3] => cell4 24) 25Array 26( 27 [0] => \\\line1 28line2\\\ 29) 30