note 116402 deleted from language.oop5.decon by salathe

From: Date: Fri, 02 Jan 2015 11:29:08 +0000
Subject: note 116402 deleted from language.oop5.decon by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201322@lists.php.net to get a copy of this message
Note Submitter: sitetester2010 at gmail dot com ---- "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." This is wrong. Old style constructor is always called if there is no __construct in child class. It doesn't inherit from parent in this case.

« previous php.notes (#201322) next »