Skip to content

Commit e990b69

Browse files
committed
Update NEWS and UPGRADING for recent deprecation merges
1 parent 284e622 commit e990b69

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,24 @@ PHP NEWS
1010

1111
- FileInfo
1212
. The finfo_close() function has been deprecated. (timwolla)
13+
. The $context parameter of the finfo_buffer() function has been deprecated
14+
as it is ignored. (Girgias)
1315

1416
- Intl:
1517
. Intl's internal error mechanism has been modernized so that it
1618
indicates more accurately which call site caused what error.
1719
Moreover, some ext/date exceptions have been wrapped inside a
1820
IntlException now. (Girgias)
21+
. The intl.error_level INI setting has been deprecated. (Girgias)
1922

2023
- MySQLi:
2124
. The mysqli_execute() alias function has been deprecated. (timwolla)
2225

2326
- OpenSSL:
2427
. Fixed bug GH-19369 (8.5 | Regression in openssl_sign() - support for alias
2528
algorithms appears to be broken). (Jakub Zelenka)
29+
. The $key_length parameter for openssl_pkey_derive() has been deprecated.
30+
(Girgias)
2631

2732
- PDO:
2833
. The "uri:" DSN scheme has been deprecated due to security concerns with
@@ -47,6 +52,8 @@ PHP NEWS
4752

4853
- Standard:
4954
. The socket_set_timeout() alias function has been deprecated. (timwolla)
55+
. Passing null to to readdir(), rewinddir(), and closedir() to use the last
56+
opened directory has been deprecated. (Girgias)
5057

5158
31 Jul 2025, PHP 8.5.0alpha4
5259

UPGRADING

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,32 @@ PHP 8.5 UPGRADE NOTES
327327
. The finfo_close() function has been deprecated.
328328
As finfo objects are freed automatically.
329329
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_finfo_close
330+
. The $context parameter of the finfo_buffer() function has been deprecated
331+
as it is ignored.
332+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_context_parameter_for_finfo_buffer
330333

331334
- Hash:
332335
. The MHASH_* constants have been deprecated. These have been overlooked
333336
when the mhash*() function family has been deprecated per
334337
https://wiki.php.net/rfc/deprecations_php_8_1#mhash_function_family
335338

339+
- Intl:
340+
. The intl.error_level INI setting has been deprecated.
341+
Errors should either be checked manually or exceptions should be enabled
342+
by using the intl.use_exceptions INI setting.
343+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_intlerror_level_ini_setting
344+
336345
- MySQLi:
337346
. The mysqli_execute() alias function has been deprecated.
338347
Use mysqli_stmt_execute() instead.
339348
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#formally_deprecate_mysqli_execute
340349

350+
- OpenSSL:
351+
. The $key_length parameter for openssl_pkey_derive() has been deprecated.
352+
This is because it is either ignored, or truncates the key, which can be
353+
a vulnerability.
354+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_key_length_parameter_of_openssl_pkey_derive
355+
341356
- PDO:
342357
. The "uri:" DSN scheme has been deprecated due to security concerns with
343358
DSNs coming from remote URIs.
@@ -365,6 +380,10 @@ PHP 8.5 UPGRADE NOTES
365380
. The socket_set_timeout() alias function has been deprecated.
366381
Use stream_set_timeout() instead.
367382
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#formally_deprecate_socket_set_timeout
383+
. Passing null to to readdir(), rewinddir(), and closedir() to use the last
384+
opened directory has been deprecated. Provide the last opened directory
385+
explicitly instead.
386+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_readdir_rewinddir_and_closedir
368387

369388
========================================
370389
5. Changed Functions

0 commit comments

Comments
 (0)