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:
@@ -85,9 +85,9 @@ if ($options['replace']) {
|
||||
$results = $urlfinder->http_link_stats();
|
||||
asort($results);
|
||||
$fp = fopen('php://stdout', 'w');
|
||||
fputcsv($fp, ['clientsite', 'httpdomain', 'urlcount']);
|
||||
fputcsv($fp, ['clientsite', 'httpdomain', 'urlcount'], escape: '\\');
|
||||
foreach ($results as $domain => $count) {
|
||||
fputcsv($fp, [$SITE->shortname, $domain, $count]);
|
||||
fputcsv($fp, [$SITE->shortname, $domain, $count], escape: '\\');
|
||||
}
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user