Fix for Bug #16265 breaks inheritance!
| From: | Wez Furlong | Date: | Tue, 26 Mar 2002 22:03:37 +0000 |
| Subject: | Fix for Bug #16265 breaks inheritance! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81835@lists.php.net to get a copy of this message | ||
Hi Derick,
I don't know if you have tried something like this with the recent
changes that were made to zend_compile.c:
Class A {
function fred() {
}
}
Class B extends A {
function fred() {
}
}
Class B is not allowed to override fred()!
A slightly more clever version of the method redeclaration check is
needed I think!
--Wez.
Attachment: [application/x-pkcs7-signature] smime.p7s
Attachment: [application/x-pkcs7-signature] smime.p7s