xref: /PHP-8.4/ext/standard/tests/file/bug26003.phpt (revision f756b96e)
1--TEST--
2Bug #26003 (fgetcsv() is not binary-safe)
3--FILE--
4<?php
5$fp = fopen(__DIR__.'/test3.csv', 'r');
6var_dump(fgetcsv($fp, 4096, escape: "\\"));
7?>
8--EXPECTF--
9array(2) {
10  [0]=>
11  string(3) "abc"
12  [1]=>
13  string(3) "d%0e"
14}
15