Req->Doc #51381 [Opn]: Clarify class definition order importance for multiple levels of inheritance

From: Date: Thu, 25 Mar 2010 05:46:28 +0000
Subject: Req->Doc #51381 [Opn]: Clarify class definition order importance for multiple levels of inheritance
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4108@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51381&edit=1 ID: 51381 User updated by: dhthwy at gmail dot com Reported by: dhthwy at gmail dot com Summary: Clarify class definition order importance for multiple levels of inheritance Status: Open -Type: Feature/Change Request +Type: Documentation Problem Package: Documentation problem PHP Version: 5.2.13 New Comment: Set the wrong bug type. Previous Comments: ------------------------------------------------------------------------ [2010-03-24 16:05:50] dhthwy at gmail dot com Description: ------------ It is not clear from the PHP5 class documentation how important the order of class definition is in the the context of multiple levels of inheritance. According to the PHP4 doc on extends @ http://php.net/manual/en/keyword.extends.php the following code is incorrect due to the order in which the classes are defined: class one extends two {} class two extends three {} class three {} However PHP5's docs make no mention if the order of definition is still significant. OR if its only significant when there are multiple levels of inheritance. The preceding code throws a fatal error 'class not found' for the class two. The following code however does work: class one extends two {} class two {} Request clarification please. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51381&edit=1

« previous php.doc.bugs (#4108) next »