1--TEST-- 2fgetcsv(): Deprecation if using default escape arg 3--FILE-- 4<?php 5$line = "test1,test2"; 6 7$file = __DIR__ . '/fgetcsv_default_escape_deprecation.csv'; 8 9$fp = fopen($file, "w"); 10fwrite($fp, $line); 11fclose($fp); 12 13var_dump(fgetcsv(fopen($file, "r"), 1024)); 14?> 15--CLEAN-- 16<?php 17$file = __DIR__ . '/fgetcsv_default_escape_deprecation.csv'; 18@unlink($file); 19?> 20--EXPECTF-- 21Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in %s on line %d 22array(2) { 23 [0]=> 24 string(5) "test1" 25 [1]=> 26 string(5) "test2" 27} 28