Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24820 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61473 invoked by uid 1010); 21 Jul 2006 11:06:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61452 invoked from network); 21 Jul 2006 11:06:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 11:06:16 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.174 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.174:31963] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 17/A6-29121-870B0C44 for ; Fri, 21 Jul 2006 06:46:16 -0400 Received: by ug-out-1314.google.com with SMTP id k3so1341843ugf for ; Fri, 21 Jul 2006 03:46:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L42FQpFPTQdnNcGFaxY3cJcn/5G+2mppQ5VpeYSI4OqqWCKCU2oTH7leXRTpsmL4WzdP7gecY0O9Hw/rnbzQoCfOhXsKundHQ/BaBAiBMDuAxTx0rUIt30EW0AUKfbxdDy+A8ypISCDX8RStsdkGVuc06DxyUIHIFZLn0hm1YqA= Received: by 10.66.220.17 with SMTP id s17mr569285ugg; Fri, 21 Jul 2006 03:46:13 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Fri, 21 Jul 2006 03:46:13 -0700 (PDT) Message-ID: Date: Fri, 21 Jul 2006 12:46:13 +0200 To: "Michael Wallner" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: pierre.php@gmail.com (Pierre) On Fri, 21 Jul 2006 10:55:05 +0200 mike@php.net (Michael Wallner) wrote: > Hi (Marcus), > > unfortunately I'm not very happy with the direction OO strictness > takes in PHP. I'm sure I'm not alone and many people second this > feeling. > > > Precisely, let's have a look at the following: > > mike@honeybadger:~/build/php-5.2-debug$ cli -d"error_reporting=8191" > -r 'class c{function f(){}} class d extends c{function f($a){}}' > Strict Standards: Declaration of d::f() should be compatible with > that of c::f() in Command line code on line 1 > > mike@honeybadger:~/build/php-unicode-debug$ cli > -d"error_reporting=8191" -r 'class c{function f(){}} class d extends > c{function f($a){}}' Fatal error: Declaration of d::f() must be > compatible with that of c::f() in Command line code on line 1 > > > I *really* think that this enforcements are no good idea and > I _beg_ you that we leave this "area" to interfaces. I second your opinion. I don't see anything wrong in this code. PHP was never thought as an academic language, neither to clone pure OO language. Without starting a java/php fud, but let continue down this way and we will drop the reasons why we are the web language #1 and not java. Cheers, -- Pierre