Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25510 invoked by uid 1010); 13 May 2004 21:56:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25485 invoked from network); 13 May 2004 21:56:31 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 13 May 2004 21:56:31 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 137B614880BF; Thu, 13 May 2004 14:56:28 -0700 (PDT) Received: from tron (obsidian.thebrainroom.net [82.133.1.142]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with ESMTP id 26D2A14880BC; Thu, 13 May 2004 14:56:20 -0700 (PDT) To: "'Rick Fletcher'" , Date: Thu, 13 May 2004 22:56:22 +0100 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <200405132127.i4DLRN8h004077@d7.sfo.snocap.com> Thread-Index: AcQ5M5mkehcOxUckSQusmSpQ44K/2AAAWZ9Q Message-ID: <20040513215620.26D2A14880BC@mx.thebrainroom.net> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on jc.thebrainroom.net X-Spam-Status: No, hits=3.3 required=5.0 tests=MSGID_FROM_MTA_SHORT autolearn=no version=2.63 X-Spam-Level: *** X-TBR-Filter: Virus scanned and defanged Subject: RE: [PHP-DEV] A misleading error message From: wez@thebrainroom.com ("Wez Furlong") References: <200405132127.i4DLRN8h004077@d7.sfo.snocap.com> The message is correct; Two is abstract since you haven't implemented a "real" version of bar(). --Wez. > With 5RC2 the following code produces a the fatal error > "Cannot instantiate > abstract class Two." In fact Two is not an abstract class, > so the wording > tripped me up for a minute. > > The error actually occurs because Two doesn't implement all of One's > abstract methods. Could someone make a change to the error message? > > > abstract class One { > abstract function foo(); > abstract function bar(); > } > > class Two extends One { > public function foo() {} > } > > new Two; > > ?>