@@ -128,15 +128,33 @@ PHP 8.3 UPGRADE NOTES
128
128
RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
129
129
. Using the -- operator on empty or non-numeric strings is now deprecated.
130
130
RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
131
+ . Calling get_class() and get_parent_class() without arguments is now
132
+ deprecated.
133
+
134
+ - DBA
135
+ . Calling dba_fetch() with $dba as the 3rd argument is now deprecated.
136
+
137
+ - FFI
138
+ . Calling FFI::cast(), FFI::new(), and FFI::type() statically is now
139
+ deprecated.
131
140
132
141
- Intl
133
142
. The U_MULTIPLE_DECIMAL_SEP*E*RATORS constant had been deprecated, using
134
143
the U_MULTIPLE_DECIMAL_SEP*A*RATORS instead is recommended.
144
+ . The NumberFormatter::TYPE_CURRENCY has been deprecated.
135
145
136
146
- LDAP
137
147
. Calling ldap_connect() with separate hostname and port is deprecated.
138
148
RFC: https://wiki.php.net/rfc/deprecations_php_8_3#deprecate_calling_ldap_connect_with_2_parameters
139
149
150
+ - MBString
151
+ . Passing a negative $width to mb_strimwidth() is now deprecated.
152
+
153
+ - Phar
154
+ . Calling Phar::setStub() with a resource and a length is now deprecated.
155
+ Such calls should be replaced by:
156
+ $phar->setStub(stream_get_contents($resource));
157
+
140
158
- Random
141
159
. The MT_RAND_PHP Mt19937 variant is deprecated.
142
160
RFC: https://wiki.php.net/rfc/deprecations_php_8_3#mt_rand_php
@@ -199,9 +217,9 @@ PHP 8.3 UPGRADE NOTES
199
217
Previously it returned null on success and false on failure.
200
218
201
219
- Curl:
202
- . curl_getinfo() now supports two new constants: CURLINFO_CAPATH and CURLINFO_CAINFO.
203
- If option is null, the following two additional keys are present:
204
- "capath" and "cainfo".
220
+ . curl_getinfo() now supports two new constants: CURLINFO_CAPATH and
221
+ CURLINFO_CAINFO. If option is null, the following two additional keys are
222
+ present: "capath" and "cainfo".
205
223
206
224
- MBString:
207
225
. mb_strtolower, mb_strtotitle, and mb_convert_case implement conditional
@@ -231,23 +249,33 @@ PHP 8.3 UPGRADE NOTES
231
249
the closest matching encoding will be returned."
232
250
233
251
- mysqli:
234
- . mysqli_fetch_object now raises a ValueError instead of an Exception when the constructor_args
235
- argument is non empty with the class not having constructor.
236
- . mysqli_poll now raises a ValueError when the read nor error arguments are passed.
252
+ . mysqli_fetch_object now raises a ValueError instead of an Exception when
253
+ the constructor_args argument is non empty with the class not having
254
+ constructor.
255
+ . mysqli_poll now raises a ValueError when the read nor error arguments are
256
+ passed.
237
257
238
258
- PGSQL:
239
- . pg_fetch_object now raises a ValueError instead of an Exception when the constructor_args
240
- argument is non empty with the class not having constructor.
241
- . pg_insert now raises a ValueError instead of a WARNING when the table specified is invalid.
242
- . pg_insert and pg_convert raises a ValueError or a TypeError instead of a WARNING when the
243
- value/type of a field does not match properly with a PostGreSQL's type.
259
+ . pg_fetch_object now raises a ValueError instead of an Exception when the
260
+ constructor_args argument is non empty with the class not having
261
+ constructor.
262
+ . pg_insert now raises a ValueError instead of a WARNING when the table
263
+ specified is invalid.
264
+ . pg_insert and pg_convert raises a ValueError or a TypeError instead of a
265
+ WARNING when the value/type of a field does not match properly with a
266
+ PostGreSQL's type.
267
+ . The $row param of pg_fetch_result(), pg_field_prtlen() and
268
+ pg_field_is_null() is now nullable.
244
269
245
270
- Random:
246
271
. Changed mt_srand() and srand() to not check the number of arguments to
247
272
determine whether a random seed should be used. Passing null will generate
248
273
a random seed, 0 will use zero as the seed. The functions are now consistent
249
274
with Mt19937::__construct().
250
275
276
+ - Reflection:
277
+ . Return type of ReflectionClass::getStaticProperties() is no longer nullable.
278
+
251
279
- Standard:
252
280
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING.
253
281
RFC: https://wiki.php.net/rfc/improve_unserialize_error_handling
@@ -274,6 +302,10 @@ PHP 8.3 UPGRADE NOTES
274
302
6. New Functions
275
303
========================================
276
304
305
+ - Date:
306
+ . Added DatePeriod::createFromISO8601String() as a replacement for the
307
+ overloaded constructor of DatePeriod.
308
+
277
309
- DOM:
278
310
. Added DOMNode::contains() and DOMNameSpaceNode::contains().
279
311
. Added DOMElement::getAttributeNames().
@@ -291,11 +323,22 @@ PHP 8.3 UPGRADE NOTES
291
323
DOMElement::insertAdjacentText().
292
324
. Added DOMElement::toggleAttribute().
293
325
326
+ - Intl:
327
+ . Added IntlCalendar::setDate() and IntlCalendar::setDateTime()
328
+ as partial replacements for the overloaded IntlCalendar::set() method.
329
+ . Added IntlGregorianCalendar::createFromDate() and
330
+ IntlGregorianCalendar::createFromDateTime()
331
+ as partial replacements for the overloaded IntlGregorianCalendar constructor.
332
+
294
333
- JSON:
295
334
. Added json_validate(), which returns whether the json is valid for
296
335
the given $depth and $options.
297
336
RFC: https://wiki.php.net/rfc/json_validate
298
337
338
+ - LDAP:
339
+ . Added ldap_connect_wallet().
340
+ . Added ldap_exop_sync().
341
+
299
342
- MBString:
300
343
. Added mb_str_pad(), which is the mbstring equivalent of str_pad().
301
344
RFC: https://wiki.php.net/rfc/mb_str_pad
@@ -317,14 +360,16 @@ PHP 8.3 UPGRADE NOTES
317
360
RFC: https://wiki.php.net/rfc/randomizer_additions
318
361
319
362
- Reflection:
320
- . Return type of ReflectionClass::getStaticProperties() is no longer nullable .
363
+ . Added ReflectionMethod::createFromMethodName() .
321
364
322
365
- Sockets:
323
366
. Added socket_atmark to checks if the socket is OOB marked.
324
367
325
368
- Standard:
326
369
. Added the str_increment() and str_decrement() functions.
327
370
RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
371
+ . Added stream_context_set_options() as a replacement for
372
+ stream_context_set_option() when passed an array of options.
328
373
329
374
- Zip:
330
375
. Added ZipArchive::setArchiveFlag and ZipArchive::getArchiveFlag methods.
0 commit comments