rfc:deprecations_php_8_0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
rfc:deprecations_php_8_0 [2020/09/25 11:34]
kocsismate
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 <nikic@php.net>, George Peter Banyard <girgias@php.net>+  * Author: Nikita Popov <nikic@php.net>, George Peter Banyard <girgias@php.net>, Máté Kocsis <kocsismate@php.net>
   * Status: Under Discussion   * Status: Under Discussion
  
Line 23: Line 23:
   * %%''DatePeriod::__construct()''%%   * %%''DatePeriod::__construct()''%%
   * ''ctype_*()'' function family accepts ''int'' parameters   * ''ctype_*()'' function family accepts ''int'' parameters
 +  * Return by reference with void type
 +  * NIL constant defined by the IMAP extension
 +  * ''unserialize_callback_func'' INI setting
  
 ===== Proposal ===== ===== Proposal =====
Line 171: Line 174:
  
 Since the current behaviour is highly surprising, passing integer values to ''ctype_*()'' functions should be deprecated first, and ZPP should be modified to only accept strings in the next major version. Since the current behaviour is highly surprising, passing integer values to ''ctype_*()'' functions should be deprecated first, and ZPP should be modified to only accept strings in the next major version.
 +
 +==== Predefined variable $http_response_header ====
 +W.I.P.
 +See https://www.php.net/manual/en/reserved.variables.httpresponseheader.php
 +We already deprecated/removed $php_errormsg and $HTTP_RAW_POST_DATA
 +
 +==== Return by reference with void type ====
 +
 +''function &test(): void {}'' currently allows, probably shouldn't be?
 +
 +
 +==== NIL constant defined by the IMAP extension ====
 +The ''NIL'' constant corresponds to the value ''0'', and can be confused with ''null''.
 +
 +==== 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