rfc:negative_array_index

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
Next revisionBoth sides next revision
rfc:negative_array_index [2017/05/21 14:46] – Simpler introduction pmmagarfc:negative_array_index [2017/06/13 18:27] pmmaga
Line 1: Line 1:
 ====== PHP RFC: Arrays starting with a negative index ====== ====== PHP RFC: Arrays starting with a negative index ======
-  * Version: 0.2+  * Version: 0.3
   * Date: 2017-04-20   * Date: 2017-04-20
   * Author: Pedro Magalhães, mail at pmmaga dot net   * Author: Pedro Magalhães, mail at pmmaga dot net
-  * Status: Under Discussion+  * Status: Voting
   * First Published at: http://wiki.php.net/rfc/negative_array_index   * First Published at: http://wiki.php.net/rfc/negative_array_index
  
Line 43: Line 43:
 } }
 </code> </code>
 +
 +<blockquote>
 +NOTE: During the deprecation phase the following ''E_DEPRECATED'' notice will be emitted in cases where the behavior will change:
 +
 +<code>
 +Deprecated: In the next major version of PHP the implicit keys of this array will start from -1 instead of 0 in ...
 +</code>
 +</blockquote>
  
 With the implementation of this RFC, they will all result in: With the implementation of this RFC, they will all result in:
Line 75: Line 83:
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
-PHP 7.2 (open issue: 8.0)+PHP 8.0
  
 ===== Unaffected PHP Functionality ===== ===== Unaffected PHP Functionality =====
Line 82: Line 90:
 Furthermore, iterating over arrays without explicit keys (ie. ''foreach'') is not affected. Furthermore, iterating over arrays without explicit keys (ie. ''foreach'') is not affected.
  
-===== Proposed Voting Choices =====+===== Voting Choices =====
 This RFC requires a 2/3 majority. This RFC requires a 2/3 majority.
 +
 +Voting opened on 13/6/2017 19:00 UTC and will close on 28/6/2017 19:00 UTC.
 +
 +<doodle title="Arrays starting with a negative index for PHP 8.0" auth="pmmaga" voteType="single" closed="false">
 +   * Yes
 +   * No
 +</doodle>
 +
 +<blockquote>The previous vote targeting 7.2 was closed with 14 for and 16 against</blockquote>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
Line 91: Line 108:
  
 ===== References ===== ===== References =====
-Discussion on the mailing list:https://externals.io/thread/712+Discussion on the mailing list: https://externals.io/thread/712 
 + 
 +First proposal Voting period discussion: https://externals.io/thread/928
  
rfc/negative_array_index.txt · Last modified: 2020/08/01 23:40 by carusogabriel