rfc:autovivification_false

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:autovivification_false [2021/06/09 19:31] – Make it false only again dharmanrfc:autovivification_false [2021/07/20 16:42] (current) – Implemented dharman
Line 2: Line 2:
   * Date: 2021-05-25   * Date: 2021-05-25
   * Author: Kamil Tekiela <dharman@php.net>   * Author: Kamil Tekiela <dharman@php.net>
-  * Status: Under Discussion +  * Status: Implemented in PHP 8.1 
-  * Target VersionPHP 8.1+  * Implementationhttps://github.com/php/php-src/pull/7131
  
 ===== Introduction ===== ===== Introduction =====
Line 21: Line 21:
 </PHP> </PHP>
  
-This RFC talks **only about autovivification from %%false%%. +This RFC talks **only about autovivification from %%false%%**
  
 ===== Proposal ===== ===== Proposal =====
Line 29: Line 29:
 > Cannot use a scalar value as an array > Cannot use a scalar value as an array
  
-In PHP 8.1, appending to a variable of type false will display a deprecation notice. +In PHP 8.1, appending to a variable of type false will display a deprecation notice. For example:
  
-In PHP 9.0, this will throw a fatal error. +> Deprecated: Automatic conversion of false to array is deprecated in 
 + 
 +In PHP 9.0, this will throw a fatal error, the same as for other scalar types
  
 ===== Rationale ===== ===== Rationale =====
Line 55: Line 57:
  
 Should we deprecate autovivification from false? Should we deprecate autovivification from false?
 +
 +Started: 2021-06-09T20:00:00Z\\
 +Ends: 2021-06-23T20:00:00Z
  
 <doodle title="Deprecate autovivification from false?" auth="dharman" voteType="single" closed="true">  <doodle title="Deprecate autovivification from false?" auth="dharman" voteType="single" closed="true"> 
Line 61: Line 66:
 </doodle> </doodle>
  
 +===== Discussion on internals ======
 +
 +https://externals.io/message/114595
  
rfc/autovivification_false.1623267093.txt.gz · Last modified: 2021/06/09 19:31 by dharman