Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h
| From: | Marcus Boerger | Date: | Wed, 28 Jan 2004 21:48:08 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2292@lists.php.net to get a copy of this message | ||
Hello Zeev,
the check is good thing for situations like this:
interface A { function f() }
interface B { function f() }
class test implements A, B {
function f() {}
}
But it is wrong for situations like this:
interface A { function f() }
interface B extends A { function g() }
class BASE implements A {
function f() {}
}
class DERIVE implements B {
function g() {}
}
In this example there is only one f(). So why should there be an error like
we have now? See following output:
$ php ext/spl/tests/limititerator.phpt
--TEST--
SPL: SeekableIterator
--SKIPIF--
--FILE--
Fatal error: Can't inherit abstract function Iterator::current() (previously declared
abstract in Iterator) in /usr/src/php-cvs/ext/spl/tests/limititerator.phpt on line 50
marcus
Wednesday, January 28, 2004, 11:25:46 AM, you wrote:
> zeev Wed Jan 28 05:25:46 2004 EDT
> Modified files:
> /ZendEngine2 zend_compile.c zend_compile.h
> Log:
> Prevent classes from implementing interfaces that have the same function
> ¨·øBé>t°±
> gÚ\Œhttp://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.519&r2=1.520&ty=uœ+•±µû´\æ8Œ
> µ‡‘
[...]