Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60749 invoked by uid 1010); 23 Jul 2007 11:11:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60734 invoked from network); 23 Jul 2007 11:11:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 11:11:44 -0000 Authentication-Results: pb1.pair.com header.from=colder@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=colder@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 213.239.212.54 as permitted sender) X-PHP-List-Original-Sender: colder@php.net X-Host-Fingerprint: 213.239.212.54 dns1.omne-serveurs.net Linux 2.4/2.6 Received: from [213.239.212.54] ([213.239.212.54:54858] helo=dns1.omne-serveurs.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/13-32314-DEC84A64 for ; Mon, 23 Jul 2007 07:11:42 -0400 Received: (qmail 7740 invoked from network); 23 Jul 2007 11:11:37 -0000 Received: from 85.3.127.230 by dns1 (envelope-from , uid 1004) with qmail-scanner-1.23 (clamdscan: 0.82. spamassassin: 3.0.1. perlscan: 1.32. Clear:RC:1(85.3.127.230):. Processed in 0.120187 secs); 23 Jul 2007 11:11:37 -0000 Received: from 230-127.3-85.cust.bluewin.ch (HELO ?192.168.1.115?) (85.3.127.230) by dns1.omne-serveurs.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 23 Jul 2007 11:11:37 -0000 Message-ID: <46A48D6D.9060007@php.net> Date: Mon, 23 Jul 2007 13:13:49 +0200 User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: Sebastian Deutsch , internals@lists.php.net References: <46A473F4.7070802@pooteeweet.org> In-Reply-To: <46A473F4.7070802@pooteeweet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] late static binding php6 From: colder@php.net (Etienne Kneuss) Lukas Kahwe Smith wrote: > Sebastian Deutsch wrote: >> hello, >> >> is there a patch for the proposal out there? is anyone working on >> that problem? > > There might be a patch flying around ... > Last I heard from Marcus was that it seems impossible to find a solution > for this without accepting a slow down/memory footprint increase for > everything else as well. Maybe still worthwhile? > > regards, > Lukas > My tests on a quite complete patch show no important slowdown, even when benchmarking with Zend/bench.php which uses a stupid amount of function calls. About the memory, it stores a stack of scopes pointers. Hence it shouldn't consume much under normal circumstances. However the patch is not finished, some ambiguities remain. So I won't publish it for now. There is another quite old patch out there using a different approach from mine, you should be able to google it quite easily. regards -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal