rfc:deprecations_php_7_2

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
rfc:deprecations_php_7_2 [2017/01/15 14:24]
nikic Start voting
rfc:deprecations_php_7_2 [2017/09/22 13:28] (current)
Line 2: Line 2:
   * Date: 2015-12-28   * Date: 2015-12-28
   * Author: Nikita Popov <​nikic@php.net>​   * Author: Nikita Popov <​nikic@php.net>​
-  * Status: ​Voting +  * Status: ​Implemented (in PHP 7.2) 
-  * Discussion: http://​markmail.org/​message/​axruwwohcjwxsjem+  * Discussion: http://​markmail.org/​message/​gto22ob4scfbk7ql
   * Originally published under: https://​wiki.php.net/​rfc/​deprecations_php_7_1   * Originally published under: https://​wiki.php.net/​rfc/​deprecations_php_7_1
  
Line 33: Line 33:
 Proposed action: A deprecation notice is thrown when a global function with name ''​%%__autoload()%%''​ is encountered during compilation. Proposed action: A deprecation notice is thrown when a global function with name ''​%%__autoload()%%''​ is encountered during compilation.
  
-<doodle title="​Deprecate and subsequently remove __autoload"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove __autoload"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 46: Line 46:
 Proposed action: A deprecation notice is thrown if the ''​track_errors''​ ini setting is enabled. Proposed action: A deprecation notice is thrown if the ''​track_errors''​ ini setting is enabled.
  
-<doodle title="​Deprecate and subsequently remove $php_errormsg"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove $php_errormsg"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 59: Line 59:
 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.
  
-<doodle title="​Deprecate and subsequently remove create_function()"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove create_function()"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 76: Line 76:
 Tracking bug: [[https://​bugs.php.net/​bug.php?​id=65785|#​65785]] Tracking bug: [[https://​bugs.php.net/​bug.php?​id=65785|#​65785]]
  
-<doodle title="​Deprecate and subsequently remove mbstring.func_overload"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove mbstring.func_overload"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 87: Line 87:
 Proposed action: Throw a deprecation notice if an ''​(unset)''​ cast is encountered by the compiler. No deprecation notice is thrown from the lexer or parser themselves (so that ''​token_get_all''​ continues working as is). Proposed action: Throw a deprecation notice if an ''​(unset)''​ cast is encountered by the compiler. No deprecation notice is thrown from the lexer or parser themselves (so that ''​token_get_all''​ continues working as is).
  
-<doodle title="​Deprecate and subsequently remove (unset) cast" auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove (unset) cast" auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 100: Line 100:
 Proposed action: Throw a deprecation notice if the second argument of ''​parse_str()''​ is not used. Proposed action: Throw a deprecation notice if the second argument of ''​parse_str()''​ is not used.
  
-<doodle title="​Deprecate and subsequently remove parse_str() without second argument"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove parse_str() without second argument"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 113: Line 113:
 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.
  
-<doodle title="​Deprecate and subsequently remove gmp_random()"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove gmp_random()"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 133: Line 133:
 Proposed action: As ''​each''​ is typically called within loops, throwing a deprecation warning for every call is likely not advisable. Instead, throw a deprecation warning on the first call for any given request. Proposed action: As ''​each''​ is typically called within loops, throwing a deprecation warning for every call is likely not advisable. Instead, throw a deprecation warning on the first call for any given request.
  
-<doodle title="​Deprecate and subsequently remove each()"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove each()"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 148: Line 148:
 Proposed action: Throw a deprecation notice if ''​assert()''​ is used with a string argument. The deprecation notice is only thrown if assertions are enabled (both zend.assertions and assert.active must be enabled). Proposed action: Throw a deprecation notice if ''​assert()''​ is used with a string argument. The deprecation notice is only thrown if assertions are enabled (both zend.assertions and assert.active must be enabled).
  
-<doodle title="​Deprecate and subsequently remove assert() with string argument"​ auth="​nikic"​ voteType="​single"​ closed="​false">+<doodle title="​Deprecate and subsequently remove assert() with string argument"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
Line 163: Line 163:
 Proposed action: Throw deprecation notice if error handler has five or more arguments. Otherwise, do not pass the ''​$errcontext''​. This prevents circumvention with ''​func_get_args()''​. Proposed action: Throw deprecation notice if error handler has five or more arguments. Otherwise, do not pass the ''​$errcontext''​. This prevents circumvention with ''​func_get_args()''​.
  
-<doodle title="​Deprecate and subsequently remove $errcontext argument of error handler"​ auth="​nikic"​ voteType="​single"​ closed="​false">+**Update:** Due to technical issues, this does not throw a deprecation warning. It is a documentation-only deprecation. 
 + 
 +<doodle title="​Deprecate and subsequently remove $errcontext argument of error handler"​ auth="​nikic"​ voteType="​single"​ closed="​true">
    * Yes    * Yes
    * No    * No
rfc/deprecations_php_7_2.1484490259.txt.gz · Last modified: 2017/09/22 13:28 (external edit)