MDL-83335 core: Explicitly specify escape with fgetcsv/fputcsv

PHP 8.4 requires that a value be provided for the `$escape` parameter to
both `fgetcsv()` and `fputcsv()`.
This commit is contained in:
Andrew Nicols
2025-01-07 13:26:48 +08:00
parent ab5692acdf
commit b29615a6f0
9 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ class phpunit_dataset {
rewind($fh);
// We just accept default, delimiter = comma, enclosure = double quote.
while ( ($row = fgetcsv($fh) ) !== false ) {
while ( ($row = fgetcsv($fh, escape: '\\') ) !== false ) {
if (empty($this->columns[$tablename])) {
$this->columns[$tablename] = $row;
} else {