Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69020 invoked from network); 5 Aug 2008 07:22:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2008 07:22:49 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.152 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 72.14.220.152 fg-out-1718.google.com Received: from [72.14.220.152] ([72.14.220.152:27542] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/54-45722-8CFF7984 for ; Tue, 05 Aug 2008 03:22:48 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1760674fgg.23 for ; Tue, 05 Aug 2008 00:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=DLIJPMmSacLK9BAWDK16DEdG6ZhQ3AIFaWkMHwipUSs=; b=Rb3wEkoG7i004GWKdwnEjaEKRYcDwazX0zoba0iBMEoQIh101ynQlDOurc7EILM56I uyI7hhmk4kTRkp8JV0uWNvcT2z1PBDAEP9i6xXtd0OEH6lyYGDRcOUvlk2v0IRC7xFAx H9ntpO5VZ5NIqN0ZnvkUpxjUx5nxB9H8ZiSCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Rhalqv1WK0w8uaoUUSl7nxuzDIyIPh8qx1wfCq0SlwB7ucArpd+MPD2pLwcfTaCKkO KZlA73vtKror2c5rH+iNd/vtA/28YFoKdYBxvhpf33DiTX49MC4IFBAVfJ6CP3i2PSgU S8AACQeE4QGnJlQsjjHdO071lgB7J4Tph5SM8= Received: by 10.103.215.4 with SMTP id s4mr404718muq.13.1217920965620; Tue, 05 Aug 2008 00:22:45 -0700 (PDT) Received: by 10.103.248.20 with HTTP; Tue, 5 Aug 2008 00:22:45 -0700 (PDT) Message-ID: <7f3ed2c30808050022q5a53399flf584e3b4b68e3faa@mail.gmail.com> Date: Tue, 5 Aug 2008 09:22:45 +0200 To: "Etienne Kneuss" Cc: "Dmitry Stogov" , "Christian Seiler" , "PHP Internals List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48970FBC.4060401@zend.com> <7f3ed2c30808041059u4a0cfd55s8a1e33c45d6a37dd@mail.gmail.com> Subject: Re: [PHP-DEV] Re: __invoke concerns From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Mon, Aug 4, 2008 at 20:43, Etienne Kneuss wrote: > Hello, > > On Mon, Aug 4, 2008 at 7:59 PM, Hannes Magnusson > wrote: >> On Mon, Aug 4, 2008 at 18:45, Etienne Kneuss wrote: >>> Hello, >>> >>> On Mon, Aug 4, 2008 at 4:18 PM, Dmitry Stogov wrote: >>>> Hi Christan, >>>> >>>> Could you please look into this patch. >>>> I'm not sure if explicit declaration of Closure::__invoke() is good idea. As >>>> it cannot provide proper argument information. >>>> >>>> May be the patch which you propose already solves this problem for >>>> reflection. (I didn't have time to look into it). >>>> >>> >>> After discussing it with Dmitry, I removed the reflection part from >>> the patch, giving full reflection info on Closures seems like a better >>> idea, even if it requires patching Reflection itself. >> >> I'm confused. What exactly is the problem you solved? >> > > Since no Invokable interface can sanely be implemented, it won't get > implemented. However, my patch adds flexibility for future internal > classes willing to use $x(); by defining get_closure as a handler. If committed, can we put in our CS that internal classes cannot use it? I can almost not imagine more confusing things. -Hannes