rfc:deprecations_php_8_0
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
rfc:deprecations_php_8_0 [2020/08/12 14:53] nikic |
rfc:deprecations_php_8_0 [2021/01/15 05:22] girgias Add unserialize_callback_func INI setting to the list |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Deprecations for PHP 8.1 ====== | ====== PHP RFC: Deprecations for PHP 8.1 ====== | ||
* Date: 2019-07-23 | * Date: 2019-07-23 | ||
- | * Author: Nikita Popov < | + | * Author: Nikita Popov < |
* Status: Under Discussion | * Status: Under Discussion | ||
Line 19: | Line 19: | ||
* Accessing static members on traits | * Accessing static members on traits | ||
* '' | * '' | ||
- | * The procedural API of '' | ||
* Passing a method name as the first parameter to '' | * Passing a method name as the first parameter to '' | ||
+ | * '' | ||
+ | * %%'' | ||
+ | * '' | ||
+ | * Return by reference with void type | ||
+ | * NIL constant defined by the IMAP extension | ||
+ | * '' | ||
===== Proposal ===== | ===== Proposal ===== | ||
Line 145: | Line 150: | ||
==== strptime() ==== | ==== strptime() ==== | ||
- | |||
- | ==== The procedural API of ext/ | ||
- | |||
- | It uses resources, while there is an OO API available. | ||
==== Passing a method name as the first parameter to ReflectionMethod:: | ==== Passing a method name as the first parameter to ReflectionMethod:: | ||
A '' | A '' | ||
+ | |||
+ | ==== mhash*() function family ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | ==== DatePeriod:: | ||
+ | |||
+ | This is a heavily overloaded function (it has 3 signatures) which should be deprecated in favour of 3 factory methods. | ||
+ | |||
+ | ==== ctype_*() function family accepts int parameters ==== | ||
+ | |||
+ | Although the documentation currently lists '' | ||
+ | |||
+ | < | ||
+ | If an integer between -128 and 255 inclusive is provided, it is interpreted as the ASCII value of a single character (negative values have 256 added in order to allow characters in the Extended ASCII range). Any other integer is interpreted as a string containing the decimal digits of the integer. | ||
+ | </ | ||
+ | |||
+ | Moreover, if any other type than int or string is passed, '' | ||
+ | |||
+ | Since the current behaviour is highly surprising, passing integer values to '' | ||
+ | |||
+ | ==== Predefined variable $http_response_header ==== | ||
+ | W.I.P. | ||
+ | See https:// | ||
+ | We already deprecated/ | ||
+ | |||
+ | ==== Return by reference with void type ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ==== NIL constant defined by the IMAP extension ==== | ||
+ | The '' | ||
+ | |||
+ | ==== unserialize_callback_func INI setting ==== | ||
+ | W.I.P. (but from my understanding this was used with __autoload() only - girgias) | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== |
rfc/deprecations_php_8_0.txt · Last modified: 2021/02/23 14:37 by nikic