Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13261 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73884 invoked by uid 1010); 11 Oct 2004 22:09:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73766 invoked from network); 11 Oct 2004 22:09:47 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 11 Oct 2004 22:09:47 -0000 Received: (qmail 23584 invoked from network); 11 Oct 2004 22:09:46 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 11 Oct 2004 22:09:46 -0000 Message-ID: <5.1.0.14.2.20041011150822.03fe31b0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 11 Oct 2004 15:09:39 -0700 To: Timm Friebe ,internals@lists.php.net In-Reply-To: <1097328384.5162.8.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Bug: Can't inherit abstract function From: andi@zend.com (Andi Gutmans) References: <1097328384.5162.8.camel@localhost> What do you expect to happen? BTW, I see an additional problem. You aren't supposed to be able to use access modifiers such as public/abstract in an interface definition. This is something we have to fix. It should be: interface Drawable { function draw(); } Andi At 03:26 PM 10/9/2004 +0200, Timm Friebe wrote: >Hi, >the attached script produces: > >Fatal error: Can't inherit abstract function Drawable::draw() >(previously declared abstract in Figure) in /usr/home/thekid/r.php on >line 12 > >which is wrong because I am not inheriting anything but implementing an >interface. > >The problem is that both zend_do_inheritance() *and* >zend_do_implement_interface() use (merge_checker_func_t) >do_inherit_method_check. > >Want me to open a bug report? > >- Timm > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php