rfc:default_ctor

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:default_ctor [2015/01/10 23:44] stasrfc:default_ctor [2017/09/22 13:28] – external edit 127.0.0.1
Line 3: Line 3:
   * Date: 2014-11-05   * Date: 2014-11-05
   * Author: Stas Malyshev, stas@php.net   * Author: Stas Malyshev, stas@php.net
-  * Status: Draft +  * Status: Voting 
   * First Published at: http://wiki.php.net/rfc/default_ctor   * First Published at: http://wiki.php.net/rfc/default_ctor
  
Line 84: Line 84:
  
 The current implementation only changes how the %%parent::__construct()%% works (and only by enabling cases which did not work before) but does not change anything else, thus reducing the BC impact of the change.  The current implementation only changes how the %%parent::__construct()%% works (and only by enabling cases which did not work before) but does not change anything else, thus reducing the BC impact of the change. 
 +
 +Also note that only "parent" calls are supported by this RFC, since this is the best practice (and in some languages, like Java, mandatory) to call the parent ctor. If instead the code does something else - like calling ctor from classes further up the hierarchy, etc. - the RFC does not change the existing behavior in that case.
  
 ===== Other Methods ===== ===== Other Methods =====
Line 108: Line 110:
 Since this RFC changes the language semantics, the 2/3+1 vote majority is required for it to pass. The vote is a straight Yes/No vote.  Since this RFC changes the language semantics, the 2/3+1 vote majority is required for it to pass. The vote is a straight Yes/No vote. 
  
 +<doodle title="Should PHP 7 have default constructor semantics as described in this proposal?" auth="stas" voteType="single" closed="true">
 +   * Yes
 +   * No
 +</doodle>
 +
 +The vote concludes on the end of the day, PST, January 24th.
 ===== References ===== ===== References =====
  
rfc/default_ctor.txt · Last modified: 2018/03/01 23:52 by carusogabriel