rfc:constdereference

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:constdereference [2011/11/30 11:24] laruencerfc:constdereference [2011/12/14 11:18] laruence
Line 7: Line 7:
  
 ===== Introduction ===== ===== Introduction =====
-small change to make things consistent.+ 
 +little improvement to make things consistent. 
  
 ===== Proposal ===== ===== Proposal =====
-base on feature request: https://bugs.php.net/bug.php?id=60408  +base on feature request: https://bugs.php.net/bug.php?id=60408:  
-//Please add array constructor dereferencing support+ 
 +<code> 
 +Please add array constructor dereferencing support
  
 like JavaScript, C# and all languages excluding PHP 5.4 like JavaScript, C# and all languages excluding PHP 5.4
  
-Test script: 
---------------- 
 <?php <?php
  
Line 23: Line 24:
  print(['wa','ss'][$i++]); // ss  print(['wa','ss'][$i++]); // ss
  
-?>//+?> 
 +</code>
  
 I wrote a patch to make php support const array/string dereference I wrote a patch to make php support const array/string dereference
Line 37: Line 39:
  
 works. works.
 +===== Vote =====
 +<doodle 
 +title="do you think it is okey to apply this to TRUNK(not 5.4)?" auth="laruence" voteType="single" closed="no">
 +   * yes
 +   * no
 +</doodle>
  
 ===== Patches ===== ===== Patches =====
Line 47: Line 55:
 ===== Changelog ===== ===== Changelog =====
   * 2011-11-30 Xinchen Hui: Initial RFC creation   * 2011-11-30 Xinchen Hui: Initial RFC creation
 +  * 2011-12-13 Xinchen Hui: Start voting
rfc/constdereference.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1