]> granicus.if.org Git - php/commit
Fix #78976: SplFileObject::fputcsv returns -1 on failure
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 17 Dec 2019 16:52:18 +0000 (17:52 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 17 Dec 2019 16:52:18 +0000 (17:52 +0100)
commit4cd6d384bde0f0641e88ae5431d5b6bdfff4ac83
treeeffb463279748fcb52b70a6ce5ade00320b3f7d6
parente45b613950d17b9a3d510dcc9a39c32117ecc081
Fix #78976: SplFileObject::fputcsv returns -1 on failure

`php_stream_write()` returns `-1` on failure now, which has to be
catered to by `SplFileObject::fputcsv()` which still is supposed to
return `false` on failure.
NEWS
ext/spl/spl_directory.c
ext/spl/tests/bug78976.phpt [new file with mode: 0644]