Req #37345 [Com]: Multiple inheritance in PHP6
| From: | parad0x dot ua at gmail dot com | Date: | Tue, 18 Jun 2013 19:53:42 +0000 |
| Subject: | Req #37345 [Com]: Multiple inheritance in PHP6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179613@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=37345&edit=1
ID: 37345
Comment by: parad0x dot ua at gmail dot com
Reported by: gustavo@php.net
Summary: Multiple inheritance in PHP6
Status: Wont fix
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
I asked for multiple inheritance and all I got was lousy Traits (PHP >= 5.4):
http://php.net/manual/en/language.oop5.traits.php
Previous Comments:
------------------------------------------------------------------------
[2006-05-07 09:54:38] helly@php.net
.
------------------------------------------------------------------------
[2006-05-07 05:38:29] gustavo@php.net
Description:
------------
Hi.
I know this is not the first time someone requests multiple inheritance in PHP, but I really think
you should consider it as interfaces are not always acceptable.
For instance, with the current single-inheritance model, if I'm working with the ActiveRecord
pattern and want to add some adapter-independant methods, I'd have to copy and paste the _same_
code for each driver/adapter. This is not handy at all.
I'd be nice to count with this feature in the next major release.
Cheers!
Expected result:
----------------
Multiple-inheritance support
Actual result:
--------------
Single-inheritance support (only)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=37345&edit=1