Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36900 invoked by uid 1010); 6 Oct 2006 15:59:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36885 invoked from network); 6 Oct 2006 15:59:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Oct 2006 15:59:27 -0000 Authentication-Results: pb1.pair.com header.from=edink@emini.dk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=edink@emini.dk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain emini.dk designates 192.38.9.232 as permitted sender) X-PHP-List-Original-Sender: edink@emini.dk X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from [192.38.9.232] ([192.38.9.232:6523] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/84-11652-C5D76254 for ; Fri, 06 Oct 2006 11:59:25 -0400 Received: by gw2.emini.dk (Postfix, from userid 504) id 660B5C9C6F; Fri, 6 Oct 2006 17:59:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on gw2.emini.dk X-Spam-Detected: no X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Level: Received: from [10.0.0.11] (port118.ds1-rdo.adsl.cybercity.dk [212.242.124.121]) by gw2.emini.dk (Postfix) with ESMTP id 32B8AC9C6A for ; Fri, 6 Oct 2006 17:59:20 +0200 (CEST) Message-ID: <45267D5A.70401@emini.dk> Date: Fri, 06 Oct 2006 17:59:22 +0200 Organization: Emini A/S User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: internals@lists.php.net References: <50.8B.48579.ED205254@pb1.pair.com> <45252FC7.9030500@php.net> <4e89b4260610060728v51b1ba65m69304a88d693ce7d@mail.gmail.com> <45267188.9030107@emini.dk> <45267B7D.9080206@zend.com> <45267C07.3090404@emini.dk> In-Reply-To: <45267C07.3090404@emini.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [VOTE] Intermediate Results From: edink@emini.dk (Edin Kadribasic) Edin Kadribasic wrote: > Stanislav Malyshev wrote: >>> The vote is should OO strictness (fatal error on changing function >>> arguments in derived classes in this case) be removed or kept. >> >> I think fatal error should be definitely removed or the rules be at >> least relaxed sufficiently to accomodate for PHP flexibility - e.g., >> () should be allowed to be overriden with ($a, $b, $c), etc. In light >> of technical difficulty to implement sufficiently flexible cheks, I >> would not mind removing them altogether or demoting them to very low >> priority notice. > > Yes, it was my opinion as well that E_NOTICE would be the most > appropriate choice here. Hate to have to reply to myself, but to clarify. I believe that most OO "strictness" fatal errors should be demoted to notices. * Changing function signatures in derived classes * Accessing non-existing class constant (print myclass::myconst) * Creating class variables (myclass::$myvar = 1) The last two exist in non-OO versions and there accessing a non-existing constant is a E_NOTICE and you don't have to declare variables at all, so I guess we should not take 180 degree turn in their OO equivalents. Edin