rfc:pow-operator

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:pow-operator [2013/12/21 05:45] datibbawrfc:pow-operator [2014/02/07 06:45] – Merged. bwoebi
Line 1: Line 1:
  
 ====== PHP RFC: Power Operator ====== ====== PHP RFC: Power Operator ======
-  * Version: 0.2+  * Version: 0.3
   * Date: 2013-11-23   * Date: 2013-11-23
   * Author: Tjerk Meesters, datibbaw@php.net   * Author: Tjerk Meesters, datibbaw@php.net
-  * Status: Under Discussion+  * Status: Merged into PHP 5.6
   * First Published at: http://wiki.php.net/rfc/pow-operator   * First Published at: http://wiki.php.net/rfc/pow-operator
   * Revision (0.1 → 0.2): 2013-12-19   * Revision (0.1 → 0.2): 2013-12-19
 +  * Revision (0.2 → 0.3): 2013-12-21
  
 ===== Introduction ===== ===== Introduction =====
Line 68: Line 69:
 ===== Changelog ===== ===== Changelog =====
  
-21-Dec-2013: Reverted the change that turns pow() into a language construct due to BC breaks. +21-Dec-2013:  
-21-Dec-2013: Closed vote and moved RFC back to Discussion status+  * Removed turning pow() into a language construct from the proposal, due to BC breaks. 
 +  Closed vote and moved RFC back to Discussion status. 
 +  * Reverted commit [[https://github.com/datibbaw/php-src/commit/f60b98cf7a8371233d800a6faa286ddba4432d02|f60b98c]]. 
 + 
 +22-Dec-2013: 
 +  * Moved RFC back to Voting status
  
 ===== Discussion ===== ===== Discussion =====
Line 158: Line 164:
  
 External extensions such as [[http://pecl.php.net/package/vld|vld]] or [[https://github.com/krakjoe/phpdbg|phpdbg]] would have to be updated, but I'm not aware of any core extensions that would otherwise be affected. External extensions such as [[http://pecl.php.net/package/vld|vld]] or [[https://github.com/krakjoe/phpdbg|phpdbg]] would have to be updated, but I'm not aware of any core extensions that would otherwise be affected.
- 
-===== Open Issues ===== 
- 
-An issue was brought up that due to pow() itself becoming a language construct, it would break existing code that uses "public function pow()". 
  
 ===== Vote ===== ===== Vote =====
Line 167: Line 169:
 Voting will be based on the following: Voting will be based on the following:
  
-  * Turn ''pow()'' into a language construct, 
   * Add the power operators ''<nowiki>**</nowiki>'' and ''<nowiki>**</nowiki>='',   * Add the power operators ''<nowiki>**</nowiki>'' and ''<nowiki>**</nowiki>='',
   * Add ''ZEND_POW'' and ''ZEND_ASSIGN_POW'' opcodes.   * Add ''ZEND_POW'' and ''ZEND_ASSIGN_POW'' opcodes.
Line 188: Line 189:
  
 Voting ends on 5th of January 2014. Voting ends on 5th of January 2014.
 +
  
  
Line 194: Line 196:
 Power operator PR: https://github.com/php/php-src/pull/543 Power operator PR: https://github.com/php/php-src/pull/543
  
 +PHP 5.6 Commits: [[http://git.php.net/?p=php-src.git;a=commit;h=aff56f3c4539869910cf2778cf0ece2d8c2dd671|1]] [[http://git.php.net/?p=php-src.git;a=commit;h=363ff60475d93716722034b8f7a2486229bf4cfb|2]]
rfc/pow-operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1