rfc:deprecations_php_7_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:deprecations_php_7_2 [2016/12/21 16:25] – nikic | rfc:deprecations_php_7_2 [2017/01/15 14:14] – nikic | ||
---|---|---|---|
Line 19: | Line 19: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
Line 81: | Line 80: | ||
Proposed action: Mark the function as deprecated, thus issuing a deprecation notice on every call. | Proposed action: Mark the function as deprecated, thus issuing a deprecation notice on every call. | ||
- | |||
- | ==== (binary) cast and b"" | ||
- | |||
- | The binary cast and binary string literals were originally introduced as forward-compatibility features for PHP 6. Currently they behave identically to ordinary (string) casts and ordinary string literals. Given that PHP 6 has been dead for years and it is unlikely that it will be resurrected in the same form, it is time to remove these forward-compatibility tokens. | ||
- | |||
- | Proposed action: Throw a compile-time deprecation whenever binary casts or binary string literals are used. | ||
==== each() ==== | ==== each() ==== | ||
Line 122: | Line 115: | ||
Proposed action: Throw deprecation notice if error handler has five or more arguments. Otherwise, do not pass the '' | Proposed action: Throw deprecation notice if error handler has five or more arguments. Otherwise, do not pass the '' | ||
+ | |||
+ | ==== (binary) cast and b"" | ||
+ | |||
+ | This deprecation has been extracted into a separate RFC: [[rfc/ | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 161: | Line 158: | ||
The motivations for removing this functionality are similar to those of '' | The motivations for removing this functionality are similar to those of '' | ||
- | |||
- | ===== Changelog ===== | ||
- | |||
- | * 2016-02-19: Added (unset) cast | ||
- | * 2016-02-19: Added mbstring.func_overload | ||
- | * 2016-02-18: Added getrandmax() |
rfc/deprecations_php_7_2.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1