Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19861 invoked from network); 22 Jul 2008 20:48:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2008 20:48:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:38852] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/62-04511-89746884 for ; Tue, 22 Jul 2008 16:48:25 -0400 Received: from MBOERGER-ZRH (ip131.fa1-0-1.occ.iinet.com [198.145.32.131]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id DC06B11F066; Tue, 22 Jul 2008 22:48:19 +0200 (CEST) Date: Tue, 22 Jul 2008 22:48:13 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1776342843.20080722224813@marcus-boerger.de> To: Lars Strojny CC: Stanislav Malyshev , Christian Seiler , Lukas Kahwe Smith , PHP Developers Mailing List , In-Reply-To: <1216757703.17574.3.camel@localhost> References: <8A5D4032-1FC4-44BB-90F3-61B802F10159@pooteeweet.org> <6BD46F4A-2733-4160-9A3E-AD49F3002865@pooteeweet.org> <4885CF6B.5060600@gmx.net> <1216731965.16085.8.camel@localhost> <48863E7C.8040900@zend.com> <1216757703.17574.3.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] closures questions From: helly@php.net (Marcus Boerger) Hello Lars, actually this is a very good idea and should work :-) marcus Tuesday, July 22, 2008, 10:15:03 PM, you wrote: > Hi Stas, > Am Dienstag, den 22.07.2008, 13:09 -0700 schrieb Stanislav Malyshev: > [...] >> I'm all for doing it, the problem is the syntax $foo->bar() is already >> used. But you can do $foo->bar->__invoke()! > Can't we change zend_std_get_method() to return a zend_internal_function > struct in case of a closure on a property? The only thing that needs to > be done would be to define the resolution order which is the trickier > thing. > cu, Lars Best regards, Marcus