Skip to content

Commit 722b5cc

Browse files
committed
[skip ci] Update UPGRADING with all relevant information
1 parent 0f64b01 commit 722b5cc

File tree

1 file changed

+57
-12
lines changed

1 file changed

+57
-12
lines changed

UPGRADING

Lines changed: 57 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,33 @@ PHP 8.3 UPGRADE NOTES
128128
RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
129129
. Using the -- operator on empty or non-numeric strings is now deprecated.
130130
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.
131140

132141
- Intl
133142
. The U_MULTIPLE_DECIMAL_SEP*E*RATORS constant had been deprecated, using
134143
the U_MULTIPLE_DECIMAL_SEP*A*RATORS instead is recommended.
144+
. The NumberFormatter::TYPE_CURRENCY has been deprecated.
135145

136146
- LDAP
137147
. Calling ldap_connect() with separate hostname and port is deprecated.
138148
RFC: https://wiki.php.net/rfc/deprecations_php_8_3#deprecate_calling_ldap_connect_with_2_parameters
139149

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+
140158
- Random
141159
. The MT_RAND_PHP Mt19937 variant is deprecated.
142160
RFC: https://wiki.php.net/rfc/deprecations_php_8_3#mt_rand_php
@@ -199,9 +217,9 @@ PHP 8.3 UPGRADE NOTES
199217
Previously it returned null on success and false on failure.
200218

201219
- 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".
205223

206224
- MBString:
207225
. mb_strtolower, mb_strtotitle, and mb_convert_case implement conditional
@@ -231,23 +249,33 @@ PHP 8.3 UPGRADE NOTES
231249
the closest matching encoding will be returned."
232250

233251
- 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.
237257

238258
- 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.
244269

245270
- Random:
246271
. Changed mt_srand() and srand() to not check the number of arguments to
247272
determine whether a random seed should be used. Passing null will generate
248273
a random seed, 0 will use zero as the seed. The functions are now consistent
249274
with Mt19937::__construct().
250275

276+
- Reflection:
277+
. Return type of ReflectionClass::getStaticProperties() is no longer nullable.
278+
251279
- Standard:
252280
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING.
253281
RFC: https://wiki.php.net/rfc/improve_unserialize_error_handling
@@ -274,6 +302,10 @@ PHP 8.3 UPGRADE NOTES
274302
6. New Functions
275303
========================================
276304

305+
- Date:
306+
. Added DatePeriod::createFromISO8601String() as a replacement for the
307+
overloaded constructor of DatePeriod.
308+
277309
- DOM:
278310
. Added DOMNode::contains() and DOMNameSpaceNode::contains().
279311
. Added DOMElement::getAttributeNames().
@@ -291,11 +323,22 @@ PHP 8.3 UPGRADE NOTES
291323
DOMElement::insertAdjacentText().
292324
. Added DOMElement::toggleAttribute().
293325

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+
294333
- JSON:
295334
. Added json_validate(), which returns whether the json is valid for
296335
the given $depth and $options.
297336
RFC: https://wiki.php.net/rfc/json_validate
298337

338+
- LDAP:
339+
. Added ldap_connect_wallet().
340+
. Added ldap_exop_sync().
341+
299342
- MBString:
300343
. Added mb_str_pad(), which is the mbstring equivalent of str_pad().
301344
RFC: https://wiki.php.net/rfc/mb_str_pad
@@ -317,14 +360,16 @@ PHP 8.3 UPGRADE NOTES
317360
RFC: https://wiki.php.net/rfc/randomizer_additions
318361

319362
- Reflection:
320-
. Return type of ReflectionClass::getStaticProperties() is no longer nullable.
363+
. Added ReflectionMethod::createFromMethodName().
321364

322365
- Sockets:
323366
. Added socket_atmark to checks if the socket is OOB marked.
324367

325368
- Standard:
326369
. Added the str_increment() and str_decrement() functions.
327370
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.
328373

329374
- Zip:
330375
. Added ZipArchive::setArchiveFlag and ZipArchive::getArchiveFlag methods.

0 commit comments

Comments
 (0)