rfc:this_var

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:this_var [2016/06/04 12:10] nikicrfc:this_var [2016/06/16 05:52] dmitry
Line 3: Line 3:
   * Date: 2016-05-23   * Date: 2016-05-23
   * Author: Dmitry Stogov, dmitry@zend.com   * Author: Dmitry Stogov, dmitry@zend.com
-  * Status: Under Discussion+  * Status: Accepted
   * First Published at: https://wiki.php.net/rfc/this_var   * First Published at: https://wiki.php.net/rfc/this_var
  
Line 155: Line 155:
 <code php> <code php>
 function foo() { function foo() {
-    vae_dump($this); // throws "Using $this when not in object context"+    var_dump($this); // throws "Using $this when not in object context"
                      // php-7.0 emitted "Undefined variable: this" and printed NULL                      // php-7.0 emitted "Undefined variable: this" and printed NULL
 } }
Line 182: Line 182:
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
 The vote is a straight Yes/No vote, that requires a 2/3 majority. The vote is a straight Yes/No vote, that requires a 2/3 majority.
-The voting will begin on Jun 6 and will close on Jun 16.+The voting began on Jun 6 and will close on Jun 16. 
 +<doodle title="Fix inconsistent behavior of $this variable?" auth="dmitry" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
Line 190: Line 194:
 After the project is implemented, this section should contain  After the project is implemented, this section should contain 
   - the version(s) it was merged to   - the version(s) it was merged to
-  - a link to the git commit(s)+  - a link to the git commit [[ http://git.php.net/?p=php-src.git;a=commitdiff;h=a9512af8109e889eb2c6042c57797184930667cd|a9512af8109e889eb2c6042c57797184930667cd]]
   - a link to the PHP manual entry for the feature   - a link to the PHP manual entry for the feature
- 
-===== Rejected Features ===== 
-Keep this updated with features that were discussed on the mail lists. 
rfc/this_var.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1