Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33698 invoked by uid 1010); 21 Sep 2005 14:54:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33682 invoked from network); 21 Sep 2005 14:54:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Sep 2005 14:54:37 -0000 X-Host-Fingerprint: 69.60.120.90 iconoclast.caedmon.net Linux 2.4/2.6 Received: from ([69.60.120.90:52900] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A3/7D-19329-C2471334 for ; Wed, 21 Sep 2005 10:54:36 -0400 Received: from localhost ([127.0.0.1]) by iconoclast.caedmon.net with esmtp (Exim 3.35 #1 (Debian)) id 1EI5xt-000396-00 for ; Wed, 21 Sep 2005 10:52:53 -0400 Message-ID: <43317427.8010205@caedmon.net> Date: Wed, 21 Sep 2005 10:54:31 -0400 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: E_STRICT on inheritance + method parameter defaults? From: sean@caedmon.net (Sean Coates) Hello all, This crept up as the result of a bug report (not mine -- http://bugs.php.net/34494), and a small discussion on IRC: Why does an E_STRICT get raised when extending a class, and altering the method's proto defaults? I understand why it would be thrown when adding/changing parameters, but why when simply changing $foo to $foo=1 ? Honest question -- I'm not trying to change the behavior, here. It doesn't seem "correct" to me, but I look forward to an explanation that I've simply overlooked. S