Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58524 invoked by uid 1010); 21 Jul 2006 17:25:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58508 invoked from network); 21 Jul 2006 17:25:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 17:25:24 -0000 X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:59011] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 0E/0A-29121-30E01C44 for ; Fri, 21 Jul 2006 13:25:24 -0400 Received: from baumbart.mbo (dslb-084-063-029-093.pools.arcor-ip.net [84.63.29.93]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 402B735C1BD; Fri, 21 Jul 2006 19:25:20 +0200 (CEST) Date: Fri, 21 Jul 2006 19:25:39 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <685689267.20060721192539@marcus-boerger.de> To: Michael Wallner Cc: internals@lists.php.net In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: helly@php.net (Marcus Boerger) Hello Michael, first of all the decision never was my decision, second i am not going to let peole run into problem hell. I coded enough PHP 4 OO to see that it didn't make any sense and caused a lot of errors in the code we wrote back then. But once again it is not my decision, i was not even my choice of OO model. The only thing i might have to excuse myself for is that i spent hundreds and hundreds of hours to get the oo code work at all and yes i know that we still have problems. Nothing more to say here, go hunt the guys that decide, not idiots devoting free time to make this all work. best regards marcus p.s.: I am not a Java fan, infact i avoid it wherever possible. Friday, July 21, 2006, 10:55:05 AM, you 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. > Regards, > -- > Michael Best regards, Marcus