Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 929 invoked by uid 1010); 26 Nov 2007 18:14:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 914 invoked from network); 26 Nov 2007 18:14:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2007 18:14:07 -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 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:45123] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/C5-55421-CEC0B474 for ; Mon, 26 Nov 2007 13:14:05 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 26 Nov 2007 20:14:01 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 26 Nov 2007 10:13:58 -0800 Message-ID: <474B0CE7.8060003@zend.com> Date: Mon, 26 Nov 2007 10:13:59 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: =?ISO-8859-1?Q?David_Z=FClke?= CC: Alexey Zakhlestin , Mike Lively , PHP Developers Mailing List References: <4740C654.3020302@digitalsandwich.com> <47417C65.8010708@iamjochem.com> <474130B3.9070303@digitalsandwich.com> <4741DC81.6000506@zend.com> <4741D574.2020800@digitalsandwich.com> <474247A2.5050301@zend.com> <4741D9D1.6030106@digitalsandwich.com> <47424B4F.2@zend.com> <4743CED7.5050402@avalon.aut.bme.hu> <4749F328.8080506@digitalsandwich.com> <45B2C652-820A-4820-82C5-A156DB5721DD@bitxtender.com> In-Reply-To: <45B2C652-820A-4820-82C5-A156DB5721DD@bitxtender.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Nov 2007 18:13:58.0353 (UTC) FILETIME=[1D199410:01C83058] Subject: Re: [PHP-DEV] [PATCH] late binding for parent (and other options) - Was Re: [PHP-DEV] late static binding php6 From: stas@zend.com (Stanislav Malyshev) > - static always points to the original callee, w/o being "broken" by > parent:: > - get_called_class() should _not_ behave like shown above. It really was > not B that got called, but it was A, trough parent:: > - a new get_static_class() method should return "B". Ouch. So now not only we have parent:: and Class:: behave differently (and I'm afraid to think of how call_user_func() should work) we also have two separate functions for getting called class and only one of them has non-functional notation. Yes, this is natural and intuitive. Not. > (essentially, get_called_class() returns the name of "self", while You don't need a function to get "self". You have __CLASS__ for that. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com