File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 50
50
?>
51
51
--EXPECTF--
52
52
fgetcsv() with negative length
53
- fgetcsv(): Argument #2 ($length) must be between 0 and %d
54
- fgetcsv(): Argument #2 ($length) must be between 0 and %d
55
- fgetcsv(): Argument #2 ($length) must be between 0 and %d
53
+ fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
54
+ fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
55
+ fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
56
56
fgetcsv() with delimiter as empty string
57
57
fgetcsv(): Argument #3 ($separator) must be a single character
58
58
fgetcsv() with enclosure as empty string
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ touch($filename);
7
7
$ fp = fopen ($ filename , "r " );
8
8
9
9
try {
10
- fgetcsv ($ fp , PHP_INT_MAX );
10
+ fgetcsv ($ fp , PHP_INT_MAX , escape: '' );
11
11
} catch (\ValueError $ e ) {
12
12
echo $ e ->getMessage () . PHP_EOL ;
13
13
}
You can’t perform that action at this time.
0 commit comments