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
128
128
reference representation since PHP 7.0.
129
129
. debug_zval_dump() will not print "interned" instead of a dummy refcount of
130
130
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".
131
137
132
138
========================================
133
139
2. New Features
Original file line number Diff line number Diff line change @@ -83,3 +83,7 @@ PHP 8.1 INTERNALS UPGRADE NOTES
83
83
of char* for the optional sequence/table name.
84
84
- The php_pdo_str_tolower_dup() PDO_API has been removed use zend_str_tolower_dup()
85
85
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