Skip to content

Commit caaf2e9

Browse files
committed
[skip-ci] Update UPGRADING documents for the new argument for fputcsv()
1 parent 5b29eba commit caaf2e9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

UPGRADING

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
========================================
133139
2. New Features

UPGRADING.INTERNALS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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".

0 commit comments

Comments
 (0)