@@ -91,6 +91,9 @@ PHP 8.1 UPGRADE NOTES
91
91
for details of behavior changes and how to explicitly set this attribute. To
92
92
keep the old behavior, use mysqli_report(MYSQLI_REPORT_OFF);
93
93
RFC: https://wiki.php.net/rfc/mysqli_default_errmode
94
+ . Classes extending mysqli_stmt::execute() will be required to specify the
95
+ additional parameter now.
96
+ RFC: https://wiki.php.net/rfc/mysqli_bind_in_execute
94
97
95
98
- MySQLnd:
96
99
. The mysqlnd.fetch_copy_data ini setting has been removed. However, this
@@ -113,12 +116,12 @@ PHP 8.1 UPGRADE NOTES
113
116
- PDO SQLite:
114
117
. Integers and floats in results sets will now be returned using native PHP
115
118
types. You can restore the previous behavior by enabling the
116
- PDO::ATTR_STRINGFIY_FETCHES option.
119
+ PDO::ATTR_STRINGIFY_FETCHES option.
117
120
118
121
- Standard:
119
122
. version_compare() no longer accepts undocumented operator abbreviations.
120
123
. htmlspecialchars(), htmlentities(), htmlspecialchars_decode(),
121
- html_entitity_decode () and get_html_translation_table() now use
124
+ html_entity_decode () and get_html_translation_table() now use
122
125
ENT_QUOTES | ENT_SUBSTITUTE rather than ENT_COMPAT by default. This means
123
126
that ' is escaped to ' while previously it was left alone.
124
127
Additionally, malformed UTF-8 will be replaced by a Unicode substitution
@@ -187,7 +190,7 @@ PHP 8.1 UPGRADE NOTES
187
190
echo $h, "\n";
188
191
```
189
192
190
- A valid seed value is within the range from 0 to the plaform defined UINT_MAX, usually 4294967295.
193
+ A valid seed value is within the range from 0 to the platform defined UINT_MAX, usually 4294967295.
191
194
192
195
. Added xxHash. The implementation brings in the following arguments
193
196
@@ -218,6 +221,9 @@ PHP 8.1 UPGRADE NOTES
218
221
used to specify a directory from which files are allowed to be loaded. It
219
222
is only meaningful if mysqli.allow_local_infile is not enabled, as all
220
223
directories are allowed in that case.
224
+ . Binding in execute has been added to mysqli prepared statements.
225
+ Parameters can now be passed to mysqli_stmt::execute as an array.
226
+ RFC: https://wiki.php.net/rfc/mysqli_bind_in_execute
221
227
222
228
- PDO MySQL:
223
229
. The PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY attribute has been added, which
@@ -262,7 +268,7 @@ PHP 8.1 UPGRADE NOTES
262
268
etc. was changed. Now properties are naturally ordered according to their
263
269
declaration and inheritance. Properties declared in a base class are going
264
270
to be before the child properties. This order is consistent with internal
265
- layout of properies in zend_objct structure and repeats the order in
271
+ layout of properties in zend_object structure and repeats the order in
266
272
default_properties_table[] and properties_info_table[]. The old order was
267
273
not documented and was caused by class inheritance implementation details.
268
274
@@ -283,6 +289,11 @@ PHP 8.1 UPGRADE NOTES
283
289
. Added array_is_list(array $array), which will return true if the array keys are 0 .. count($array)-1 in that order.
284
290
RFC: https://wiki.php.net/rfc/is_list
285
291
292
+ - Standard:
293
+ . Added fsync() and fdatasync(), which instruct the operating system to
294
+ flush its buffers to physical storage.
295
+ RFC: https://wiki.php.net/rfc/fsync_function
296
+
286
297
========================================
287
298
7. New Classes and Interfaces
288
299
========================================
0 commit comments