Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_compile.c

From: Date: Sat, 29 Jun 2002 10:36:42 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_compile.c
References: 1 2 3  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-222@lists.php.net to get a copy of this message
At 12:36 PM 6/29/2002 +0200, Markus Fischer wrote:
On Sat, Jun 29, 2002 at 12:29:15PM +0200, Thies C. Arntzen wrote : On Sat, Jun 29, 2002 at 08:37:59AM -0000, Andi Gutmans wrote:
andi                Sat Jun 29 04:37:59 2002 EDT
Modified files:
    /Zend   zend_compile.c
Log: - Fix for bug 17882
    so overwriting method is no longer allowd?
    <?
    class a {
        function test() {
        }
    }
    class b extends a {
        function test() {
        }
    }
    ?>
    No, but multiple definitions aren't allowed anymore:
    <?
        class a {
            function foo() {
            }
            function foo() {
            }
        }
    ?>
    For some reason it worked before (but was confusing).
Exactly. Overriding inherited methods should still work. Andi

« previous php.zend-engine.cvs (#222) next »