Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11259 invoked from network); 5 Aug 2014 16:08:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2014 16:08:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.51 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:44957] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/F5-48163-B6101E35 for ; Tue, 05 Aug 2014 12:08:13 -0400 Received: by mail-qa0-f51.google.com with SMTP id k15so1122352qaq.38 for ; Tue, 05 Aug 2014 09:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=kzXS3x15ImWBzqmgxdIrliqfNkQaYHoL6ZjTmnxWPLU=; b=vEGEUd1mELoC2RpxAKaRdksKoSsS+zSG9T8XOvWptvxxIzgh0DMM8KwkCvMWY27yBE Dpdlzzxohl6ZtUfKb0zdzb7t3HZc2/erNjw8l6hTtKRZFDkrnb8maJJ0AaGBebHngGzt kYQbs+RkIcijx7V7nmysLe99IuT3xxpRZ+P7H3yLHhezHaRl2PlJM+LQRc3OlBtzYiqR 8MuDn++7IyiJHFeOc6+I9SISYPSKfnCAT5ouuuYETiFSBFVBX2B6N0VzuavylN644Ur6 GSA7fJ2X0bu10dg8GYwlXzGXnNewsUNZWR9R9xbfp2Fpi53z48w6IxKdlxwHA5CjP6ws F22A== X-Received: by 10.224.163.83 with SMTP id z19mr7352124qax.68.1407254916428; Tue, 05 Aug 2014 09:08:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.18.230 with HTTP; Tue, 5 Aug 2014 09:08:16 -0700 (PDT) In-Reply-To: <53E0FFF2.3050803@ralphschindler.com> References: <53E0F651.1020101@ralphschindler.com> <53E0FFF2.3050803@ralphschindler.com> Date: Tue, 5 Aug 2014 18:08:16 +0200 Message-ID: To: Ralph Schindler Cc: Andrea Faulds , PHP Internals List Content-Type: multipart/alternative; boundary=089e01294f6666ffd004ffe411b4 Subject: Re: [PHP-DEV] [RFC] Closure::call and Function Referencing as Closures From: ocramius@gmail.com (Marco Pivetta) --089e01294f6666ffd004ffe411b4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5 August 2014 18:01, Ralph Schindler wrote: > At the risk of stating the obvious, can=E2=80=99t you just use $f->bar->_= _invoke()? >> > > Actually, it was not immediately obvious that __invoke() was a method fro= m > the docs as it is a side-note and not in the class signature breakout. > Oops! ;) > > http://php.net/manual/en/class.closure.php > Interestingly, reflection doesn't even expose it: http://3v4l.org/8Jutn Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --089e01294f6666ffd004ffe411b4--