1 parent d1edcc1 commit d8f1a9aCopy full SHA for d8f1a9a
1 file changed
lib/Interpreter/Functions/Util/Csv_To_Table.php
@@ -31,6 +31,9 @@ public function run(array $input = [], string $separator = ',', string $enclosur
31
return [];
32
}
33
34
+ // PHP 8.4+ requires enclosure to be exactly one character; use null byte to disable quoting when empty string is given
35
+ $enclosure = $enclosure !== '' ? $enclosure : "\0";
36
+
37
$csvTable = [];
38
while ($line = fgets($fileStream)) {
39
$csvTable[] = $this->reindex(str_getcsv($line, $separator, $enclosure));
0 commit comments