Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37427 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27356 invoked from network); 4 May 2008 03:55:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2008 03:55:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@envisionic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=adam@envisionic.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain envisionic.com from 64.233.166.180 cause and error) X-PHP-List-Original-Sender: adam@envisionic.com X-Host-Fingerprint: 64.233.166.180 py-out-1112.google.com Received: from [64.233.166.180] ([64.233.166.180:31937] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/D3-10564-AA33D184 for ; Sat, 03 May 2008 23:55:22 -0400 Received: by py-out-1112.google.com with SMTP id u77so364635pyb.16 for ; Sat, 03 May 2008 20:55:20 -0700 (PDT) Received: by 10.35.32.3 with SMTP id k3mr8708611pyj.54.1209873319800; Sat, 03 May 2008 20:55:19 -0700 (PDT) Received: from ?192.168.1.2? ( [76.214.189.190]) by mx.google.com with ESMTPS id n27sm7186759pyh.11.2008.05.03.20.55.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 May 2008 20:55:18 -0700 (PDT) Message-ID: <5C4A11BC-5DBA-4A4A-8DDF-7BAB78488DFE@envisionic.com> To: internals@lists.php.net Content-Type: multipart/alternative; boundary=Apple-Mail-3--362117174 Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sat, 3 May 2008 23:55:16 -0400 X-Mailer: Apple Mail (2.919.2) Subject: Question on PHP 6 and static calls to instance methods. From: adam@envisionic.com (Adam Richardson) --Apple-Mail-3--362117174 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I've incorporated use of the ability to call instance methods through static calls, allowing for me to mimic multiple inheritance without having to make edits to classes that are already working because of the behavior of '$this' when instance methods are called statically. As stated on in the basics section on classes and objects: "$this is a reference to the calling object (usually the object to which the method belongs, but can be another object, if the method is called statically from the context of a secondary object)." I've made great use of that functionality in my framework. However, It sounds like this is going to cause a fatal error in PHP6. Is this in fact true? And, if the behavior is going to change, can somebody explain what the impetus for this change was? Thank you very much for your time, Adam Adam Richardson Envision Internet Consulting, LLC Phone: (517)623-0485 Services and insight for building effective, user-oriented websites. --Apple-Mail-3--362117174--