From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.2.1 PHP Bug Type: *General Issues Bug description: No multiple inheritance possible
I don't know if this is in the right spot, but there seemed to be no other way to send in requests, so here goes: ----------------------------------------------- I noticed it's not possible to do multiple inheritance other than doing the following: class c extends b { } class b extends a { } class a { } This is a bit too limiting for my taste, as you can only really inherit from 1 non-user-defined class, which is the top one. The rest, you'll have to create yourself. This can be quite annoying, especially when you have various other classes which you have no write-access to to modify so they extend another class. What i'd like to do is: class a extends b extends c { } This would enable the programmer to inherit as many classes as he/she wants, and not be fooling around with millions of subclasses, which in turn require other subclasses, making for some very long (and weird) spaghetti-like-programming.. Also, what could be ideal, is variable (multiple) class inheritance: class a extends $b extends $c { } where $b and $c are variables defined at run-time. This would make (for example) the creation of database-wrappers and various other types of interfaces a LOT easier, though it'll probably be a pain to implement into PHP, even if it's at all possible.......:( -- Edit bug report at http://bugs.php.net/?id=17360&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17360&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17360&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17360&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17360&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17360&r=support Expected behavior: http://bugs.php.net/fix.php?id=17360&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17360&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17360&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17360&r=globals