svn: /phpdoc/en/trunk/language/oop5/ decon.xml

From: Date: Thu, 03 Sep 2015 22:15:18 +0000
Subject: svn: /phpdoc/en/trunk/language/oop5/ decon.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13705@lists.php.net to get a copy of this message
cmb Thu, 03 Sep 2015 22:15:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337740 Log: reverted erroneous fix for bug #66926 Bug: https://bugs.php.net/66926 (Closed) old-style constructor and __construct() Changed paths: U phpdoc/en/trunk/language/oop5/decon.xml Modified: phpdoc/en/trunk/language/oop5/decon.xml =================================================================== --- phpdoc/en/trunk/language/oop5/decon.xml 2015-09-03 21:43:21 UTC (rev 337739) +++ phpdoc/en/trunk/language/oop5/decon.xml 2015-09-03 22:15:18 UTC (rev 337740) @@ -62,15 +62,13 @@ </programlisting> </example> <para> - For backwards compatibility, if a - class did not inherit a <link linkend="object.construct">__construct()</link> from a parent class, - either __construct() or the - old-style constructor function with the name of the class will be used as constructor function, - whichever comes first. + For backwards compatibility, if PHP 5 cannot find a + <link linkend="object.construct">__construct()</link> function for a given class, and the + class did not inherit one from a parent class, it will + search for the old-style constructor function, by the name of the class. Effectively, it means that the only case that would have compatibility issues is if the class had a method named - <link linkend="object.construct">__construct()</link> which was used for different semantics, - and which came lexically before the old-style constructor. + <link linkend="object.construct">__construct()</link> which was used for different semantics. </para> <para> Unlike with other methods, PHP will not generate an

« previous php.doc.cvs (#13705) next »