Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35338 invoked from network); 4 Aug 2008 18:43:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2008 18:43:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 74.125.46.29 yw-out-2324.google.com Received: from [74.125.46.29] ([74.125.46.29:20274] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/02-22351-1ED47984 for ; Mon, 04 Aug 2008 14:43:47 -0400 Received: by yw-out-2324.google.com with SMTP id 5so1158353ywb.83 for ; Mon, 04 Aug 2008 11:43:43 -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:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=OTsspXZgyrp4ZRZ5NT+Ls0/R2sTqmj+j0rvQojXRTjY=; b=ETukcVCNQcw2VMiLi7aEggHATMLKiKr9I0Ok3rw14rktF5nVFtAAKTQhrIvClfhbE2 1yFu8yEoVxDbxMvPJP/oVnsmD5HUWZkZ87jIpKNbPmiTaQg5/Qr0GKYxq9PWZhLcEnLj 6ygk88eKoFZD40V4aMyc5LArcGevaumR5tPpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=iFiUVzci+qzSPV7RUKn4Tg7R00p41Rm8SUpvB4S7Bz4PCfov6c1zJBKFeFI+Cvr4iM gE0CAQep3DgB0Her9tw29rxKRJtdaOnFvF0SLgPW2aeM11jBbzlJm1Y7qtewjSsAZ95m HL0EdqzvpLMY7Z5s7lKChu1IZFyJAZumMA7Us= Received: by 10.150.186.21 with SMTP id j21mr1767156ybf.133.1217875423187; Mon, 04 Aug 2008 11:43:43 -0700 (PDT) Received: by 10.150.197.14 with HTTP; Mon, 4 Aug 2008 11:43:43 -0700 (PDT) Message-ID: Date: Mon, 4 Aug 2008 20:43:43 +0200 Sender: ekneuss@gmail.com To: "Hannes Magnusson" Cc: "Dmitry Stogov" , "Christian Seiler" , "PHP Internals List" In-Reply-To: <7f3ed2c30808041059u4a0cfd55s8a1e33c45d6a37dd@mail.gmail.com> 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> X-Google-Sender-Auth: 492ab2e9e0ef4408 Subject: Re: [PHP-DEV] Re: __invoke concerns From: colder@php.net ("Etienne Kneuss") 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. Regards > -Hannes > > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal