Date: 08/31/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4785 Updated: Last POST variable has newline appended"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4237 Updated: Call to exit causes crash in Roxen-module"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] RE: PHP 4.0 Bug #6418 Multiple class extends (or multiple inheritance with php)"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] RE: PHP 4.0 Bug #6418 Multiple class extends (or multiple inheritance with php)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6418
Updated by: stas
Reported By: nathan <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4785 Updated: Last POST variable has newline appended"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4237 Updated: Call to exit causes crash in Roxen-module"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] RE: PHP 4.0 Bug #6418 Multiple class extends (or multiple inheritance with php)"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] RE: PHP 4.0 Bug #6418 Multiple class extends (or multiple inheritance with php)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

