File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ PHP 8.1 UPGRADE NOTES
128128 reference representation since PHP 7.0.
129129 . debug_zval_dump() will not print "interned" instead of a dummy refcount of
130130 one for interned strings and immutable arrays.
131+ . fputcsv() now accepts a new "eol" argument which allow to define a custom
132+ eol sequence, the default remains the same and is "\n".
133+
134+ - SPL:
135+ . SplFileObject::fputcsv() now accepts a new "eol" argument which allow to
136+ define a custom eol sequence, the default remains the same and is "\n".
131137
132138========================================
1331392. New Features
Original file line number Diff line number Diff line change @@ -83,3 +83,7 @@ PHP 8.1 INTERNALS UPGRADE NOTES
8383 of char* for the optional sequence/table name.
8484 - The php_pdo_str_tolower_dup() PDO_API has been removed use zend_str_tolower_dup()
8585 or zend_string_tolower_ex().
86+
87+ c. ext/standard
88+ - The PHP API php_fputcsv() now takes an extra zend_string* argument at the end
89+ for a custom EOL sequence, passing NULL provides the old default of "\n".
You can’t perform that action at this time.
0 commit comments