Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26898 invoked by uid 1010); 21 May 2007 21:55:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26882 invoked from network); 21 May 2007 21:55:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2007 21:55:14 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.214.94.56 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Received: from [85.214.94.56] ([85.214.94.56:50672] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/65-19484-F3512564 for ; Mon, 21 May 2007 17:55:12 -0400 Received: from baumbart.mbo (dslb-084-063-037-249.pools.arcor-ip.net [84.63.37.249]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 6A1FE1B3623; Mon, 21 May 2007 23:55:08 +0200 (CEST) Date: Mon, 21 May 2007 23:55:42 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <141175300.20070521235542@marcus-boerger.de> To: Ralph Schindler CC: internals In-Reply-To: <4651F3CB.1060602@smashlabs.com> References: <4651F3CB.1060602@smashlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Inconsistent behavior when using interfaces From: helly@php.net (Marcus Boerger) Hello Ralph, Monday, May 21, 2007, 9:32:27 PM, you wrote: > Is this a problem or not? > The following will produce this notice: > Strict Standards: Declaration of Z_Concrete::__get() should be > compatible with that of Z_Abstract::__get() in xxx on line 16 > error_reporting(E_ALL | E_STRICT); > interface Z_Interface > { } > abstract class Z_Abstract implements Z_Interface > { > public function __get($name) > { > return; > } > } > class Z_Concrete extends Z_Abstract > { > public function & __get($name) > { > return null; > } > } > $t = new Z_Concrete(); > This code will not produce a notice: > error_reporting(E_ALL | E_STRICT); > abstract class Z_Abstract > { > public function __get($name) > { > return; > } > } > class Z_Concrete extends Z_Abstract > { > public function & __get($name) > { > return null; > } > } > $t = new Z_Concrete(); > The only difference is that the former has an interface as a parent, the > latter does not. Is this a bug? yes best regards marcus Now completely out of topic: > CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, > is being sent by 3Com bla bullshit nonsense in the same manner i guess it makes no sense tocommunicate further? :-) this is a general consideration, people should stop sending these non applicable message stubs. They render open source unuseable. Best regards, Marcus