rfc:fix_list_behavior_inconsistency

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
Last revisionBoth sides next revision
rfc:fix_list_behavior_inconsistency [2014/09/11 09:54] dmitryrfc:fix_list_behavior_inconsistency [2014/10/18 21:33] – Add note on what was implemented nikic
Line 1: Line 1:
 ====== PHP RFC: Fix list() behavior inconsistency ====== ====== PHP RFC: Fix list() behavior inconsistency ======
-  * Version: 0.9+  * Version: 1.0
   * Date: 2014-09-11   * Date: 2014-09-11
   * Author: Dmitry Stogov, dmitry@zend.com   * Author: Dmitry Stogov, dmitry@zend.com
-  * Status: Draft (or Under Discussion or Accepted or Declined)+  * Status: Implemented (in PHP 7)
   * First Published at: http://wiki.php.net/rfc/fix_list_behavior_inconsistency   * First Published at: http://wiki.php.net/rfc/fix_list_behavior_inconsistency
  
Line 38: Line 38:
 </code> </code>
  
-Instead of assignment NULL into $a and $b, it'll assign 'a' and 't' characters.+Instead of assignment NULL into $a and $b, it'll assign 's' and 't' characters.
 However, it also may break some existing PHP code. However, it also may break some existing PHP code.
  
Line 49: Line 49:
 PHP7 PHP7
  
-===== Proposed Voting Choices ===== +===== Vote =====
-  * disable string handling in all cases +
-  * enable string handling in all cases+
  
-This project requires a 2/3 majority+This project requires a 2/3 majority, between first and second or third options.
  
-===== Patches and Tests ===== +Voting started on 2014-09-25 and ends 2014-10-02. 
-The implementation is not really a problem.+ 
 +<doodle title="Fix list() behavior inconsistency?" auth="dmitry" voteType="single" closed="true"> 
 +   * don't fix 
 +   * disable string handling in all cases 
 +   * enable string handling in all cases 
 +</doodle> 
 + 
 +===== Implementation ===== 
 + 
 +Support for strings has been removed for all cases. Support for ''ArrayAccess'' has been added for all cases (previously it was not supported for temporary variables). 
 + 
 +https://github.com/php/php-src/commit/7c7b9184b1fdf7add1715079f22241bc1185fcb0
rfc/fix_list_behavior_inconsistency.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1