RE: PHP 4.0 Bug #6418 Multiple class extends (or multiple inheritance with php)

From: Date: Thu, 31 Aug 2000 15:35:48 +0000
Subject: RE: PHP 4.0 Bug #6418 Multiple class extends (or multiple inheritance with php)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-31457@lists.php.net to get a copy of this message
ID: 6418 Updated by: stas Reported By: nathan@cjhunter.com Status: Open Bug Type: Feature/Change Request Assigned To: Comments: > Yes, you cannot do this in PHP. Well not by design but it does work. > In fact, you even shouldn't try doing this - why would you need to define class without knowing what it extends? I know what it extends. As in the example I gave, class c inherits from the hybrid class b. > I move it to feature request in the meantime, in case something will explain why this could be useful. Well I don't know how linguistically correct the semantics are but what I was trying the achieve was multiple inheritance with php. I am working on a set of classes to process form data and with the associated data of the given class provide specific data processing functions. When I first started working on the project I started seeing a lot of function and member replication within the classes so I decided to use more of an OO hierarchy. I think his should be considered as a solution to php multiple inheritance. Necessity is the mother of all invention. Full Bug description available at: http://bugs.php.net/?id=6418

« previous php.dev (#31457) next »