1--TEST-- 2Bug #78976 (SplFileObject::fputcsv returns -1 on failure) 3--FILE-- 4<?php 5$file = new SplFileObject('php://memory', 'r'); 6$file->setCsvControl(escape: ""); 7var_dump($file->fputcsv(['foo', 'bar'])); 8?> 9--EXPECT-- 10bool(false) 11