Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49964 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33575 invoked from network); 24 Oct 2010 22:41:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2010 22:41:49 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.203 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.203 smtp203.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.203] ([67.192.241.203:52948] helo=smtp203.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/B6-17247-B26B4CC4 for ; Sun, 24 Oct 2010 18:41:49 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp20.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 5F5AE2580B1; Sun, 24 Oct 2010 18:41:45 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp20.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 0BFBC2580AF; Sun, 24 Oct 2010 18:41:44 -0400 (EDT) Message-ID: <4CC4B628.3060304@sugarcrm.com> Date: Sun, 24 Oct 2010 15:41:44 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Giovanni Giacobbi CC: "internals@lists.php.net" References: <20101024223825.GC19835@gerbil.thgnet.it> In-Reply-To: <20101024223825.GC19835@gerbil.thgnet.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] BC break in 5.3.2 -> 5.3.3 with "parent::" and __call/__callStatic From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > class Bar { > // override getFoo() to add some specific behaviour > public function getFoo() { > // do the specific stuff > parent::getFoo(); > } > } I think you meant Bar to extend ActiveRecord? But anyway, I think that this particular call should be done through __call, not __callStatic, since it's basically non-static call. The line between the two wasn't really well-defined in PHP (you could call static methods non-statically and vice versa) which is a pity but I think distinction can be made in this case. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227