Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2442 invoked by uid 1010); 28 May 2007 19:58:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2427 invoked from network); 28 May 2007 19:58:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2007 19:58:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:41771] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/57-46269-E743B564 for ; Mon, 28 May 2007 15:58:55 -0400 Received: from [127.0.0.1] ([192.168.17.66]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 28 May 2007 12:58:51 -0700 Message-ID: <465B3479.7080709@zend.com> Date: Mon, 28 May 2007 12:58:49 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Ken Stanley CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 May 2007 19:58:51.0760 (UTC) FILETIME=[9D14C700:01C7A162] Subject: Re: [PHP-DEV] late static binding From: stas@zend.com (Stanislav Malyshev) > parties involved could help clear up for me. Basically, I am wondering if > anybody has tossed around the idea of having a scope of child::, just like Well, this exactly name makes little sense, since class has only one self and one parent, but can have many children, so child:: does not uniquely identify the context. However, the idea of having dynamic scope that refers to the class which was mentioned during the static call was indeed raised a number of times. The problem there is that since currently the engine does not preserve that class scope, it is not accessible inside the static call. > My second question on this topic would be how hard would it be to create a > child scope in the Zend Engine? Since I am not a very experienced C I don't really understand - what is "child scope"? > programmer, this may be a naive question, but if Zend is smart enough to > know who the inherited class object is, could it be much more difficult to > know who did the inheriting? Yes, it could and it is. There's an unique link from child to parent, but there's no any link from parent to child, neither this link is possible since parent can have many children which could come into existence at any time during the lifecycle of the script. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/