Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33327 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17457 invoked by uid 1010); 19 Nov 2007 18:56:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 17442 invoked from network); 19 Nov 2007 18:56:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2007 18:56:42 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; 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:50498] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/E4-05823-86CD1474 for ; Mon, 19 Nov 2007 13:56:42 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 19 Nov 2007 20:56:37 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 19 Nov 2007 10:56:30 -0800 Message-ID: <4741DC5F.3060905@zend.com> Date: Mon, 19 Nov 2007 10:56:31 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Jochem Maas CC: Mike Lively , internals@lists.php.net References: <4740C654.3020302@digitalsandwich.com> <474154E0.4070302@zend.com> <47417C65.8010708@iamjochem.com> In-Reply-To: <47417C65.8010708@iamjochem.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Nov 2007 18:56:30.0896 (UTC) FILETIME=[E5A47B00:01C82ADD] Subject: Re: [PHP-DEV] late static binding php6 From: stas@zend.com (Stanislav Malyshev) > class A { > static function find($id) { > // lets try and find a 'something' > } > } > > class B extends A {} > > // I'd like a 'B' please bob. > $b = B::find( 1 ); > > > > are you saying that A::find() can tell that it was called as B::find() ? Yes, this is exactly what LSB does. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com