From 810d5479266fd45eaee1ca07b34c7bca863d6fa2 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Thu, 3 Sep 2015 22:15:18 +0000 Subject: [PATCH] reverted erroneous fix for bug #66926 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337740 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/decon.xml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/language/oop5/decon.xml b/language/oop5/decon.xml index 3cbb255287..b8ad55ffa7 100644 --- a/language/oop5/decon.xml +++ b/language/oop5/decon.xml @@ -62,15 +62,13 @@ $obj = new OtherSubClass(); - For backwards compatibility, if a - class did not inherit a __construct() 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 + __construct() 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 - __construct() which was used for different semantics, - and which came lexically before the old-style constructor. + __construct() which was used for different semantics. Unlike with other methods, PHP will not generate an