Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75550 invoked by uid 1010); 4 Aug 2006 07:49:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75519 invoked from network); 4 Aug 2006 07:49:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2006 07:49:37 -0000 X-Host-Fingerprint: 87.123.97.208 i577B61D0.versanet.de Received: from ([87.123.97.208:23315] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id E2/B0-63329-E0CF2D44 for ; Fri, 04 Aug 2006 03:49:36 -0400 To: internals@lists.php.net,Derick Rethans Message-ID: <44D2FC0D.3050009@php.net> Date: Fri, 04 Aug 2006 09:49:33 +0200 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 CC: Rasmus Lerdorf References: <18810497049.20060801234124@marcus-boerger.de> <44CFDB2B.1010907@cschneid.com> <20060802010156.5be0258c@pierre-u64> <44CFDF89.6010506@lerdorf.com> <7.0.1.0.2.20060802153119.0c2193c0@zend.com> <44D0DB82.1070307@lerdorf.com> <44D1FAF0.5060906@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 87.123.97.208 Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: lsmith@php.net (Lukas Smith) Derick Rethans wrote: > - Add a new flag to methods (at the implementation level) that will > allow to flag them as 'strict' > - In case such a strict method is improperly overridden - error out > (E_ERROR) > - In case a non-strict method is improperly overridden - emit E_STRICT i am fine with that proposal .. if we do split up E_STRICT into E_STRICT (feature is not clean "proper" code) and E_DEPRECATED (feature will be dropped in the next major release) also note that the first two points in Derick's list only apply to classes on the C level .. userland classes will only trigger E_STRICT if they are improperly overwritten. will it be possible to get the information about the strictness of internal classes via the reflection API? or will we leave this to documentation only? regards, Lukas