Skip to content

Commit 7b44bfd

Browse files
committed
UPGRADING and NEWS for recent 8.5 deprecations
1 parent ccb716d commit 7b44bfd

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

NEWS

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,28 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.5.0beta1
44

5+
- Core:
6+
. Non-canonical cast names (boolean), (integer), (double), and (binary) have
7+
been deprecated. (Girgias)
8+
9+
- FileInfo
10+
. The finfo_close() function has been deprecated. (timwolla)
11+
12+
- MySQLi:
13+
. The mysqli_execute() alias function has been deprecated. (timwolla)
14+
15+
- PDO:
16+
. The "uri:" DSN scheme has been deprecated due to security concerns with
17+
DSNs coming from remote URIs. (timwolla)
18+
519
- Reflection:
620
. Fixed bug GH-17927 (Reflection: have some indication of property hooks in
721
`_property_string()`). (DanielEScherzer)
22+
. The setAccessible() methods of various Reflection objects have been
23+
deprecated, as those no longer have an effect. (timwolla)
24+
25+
- Standard:
26+
. The socket_set_timeout() alias function has been deprecated. (timwolla)
827

928
31 Jul 2025, PHP 8.5.0alpha4
1029

UPGRADING

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,41 @@ PHP 8.5 UPGRADE NOTES
316316
one will still be used. If a user output handler returns a non-string and
317317
produces output, the warning about producing an output is emitted first.
318318
RFC: https://wiki.php.net/rfc/deprecations_php_8_4
319+
. Non-canonical cast names (boolean), (integer), (double), and (binary) have
320+
been deprecated, use (bool), (int), (float), and (string) respectively.
321+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names
322+
323+
- FileInfo:
324+
. The finfo_close() function has been deprecated.
325+
As finfo objects are freed automatically.
326+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_finfo_close
319327

320328
- Hash:
321329
. The MHASH_* constants have been deprecated. These have been overlooked
322330
when the mhash*() function family has been deprecated per
323331
https://wiki.php.net/rfc/deprecations_php_8_1#mhash_function_family
324332

333+
- MySQLi:
334+
. The mysqli_execute() alias function has been deprecated.
335+
Use mysqli_stmt_execute() instead.
336+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#formally_deprecate_mysqli_execute
337+
338+
- PDO:
339+
. The "uri:" DSN scheme has been deprecated due to security concerns with
340+
DSNs coming from remote URIs.
341+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_pdo_s_urischeme
342+
343+
344+
- Reflection:
345+
. The setAccessible() methods of various Reflection objects have been
346+
deprecated, as those no longer have an effect.
347+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible
348+
349+
- Standard:
350+
. The socket_set_timeout() alias function has been deprecated.
351+
Use stream_set_timeout() instead.
352+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#formally_deprecate_socket_set_timeout
353+
325354
========================================
326355
5. Changed Functions
327356
========================================

0 commit comments

Comments
 (0)