Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73260 invoked from network); 15 Mar 2013 16:10:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2013 16:10:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.89 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.89 blu0-omc2-s14.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.89] ([65.55.111.89:18218] helo=blu0-omc2-s14.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/B4-51298-40843415 for ; Fri, 15 Mar 2013 11:10:44 -0500 Received: from BLU0-SMTP204 ([65.55.111.73]) by blu0-omc2-s14.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Mar 2013 09:10:42 -0700 X-EIP: [PWTSgvrNoTTLHWqoX++qoBc8+Y5lMM+x] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Received: from bob-weinands-imac.fritz.box ([78.141.134.76]) by BLU0-SMTP204.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Mar 2013 09:10:40 -0700 Content-Type: multipart/alternative; boundary="Apple-Mail=_40E410DC-EFF2-4A6B-98C6-5383A5C363B0" MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) In-Reply-To: Date: Fri, 15 Mar 2013 17:10:37 +0100 CC: PHP Mailing List Developers References: <51432E01.7090502@mrclay.org> <51433530.5040707@gmail.com> To: Anthony Ferrara X-Mailer: Apple Mail (2.1499) X-OriginalArrivalTime: 15 Mar 2013 16:10:40.0406 (UTC) FILETIME=[A3507360:01CE2197] Subject: Re: [PHP-DEV] Could we kill call_user_func? From: bobwei9@hotmail.com (Bob Weinand) --Apple-Mail=_40E410DC-EFF2-4A6B-98C6-5383A5C363B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Am 15.3.2013 um 16:59 schrieb Anthony Ferrara : > Bob, >=20 > call_user_func is not call_user_func_array >=20 > call_user_func($func) is the same as $func(). In any way. >=20 > Not in any way. call_user_func accepts any expression for the function = to call. `$func()` only accepts callables. >=20 > Example: >=20 > call_user_func(getCallback());=20 > getCallback()(); // <-- syntax error. >=20 > You *could* solve it with variable foo: >=20 > ${'_'.!$_=3DgetCallback()}(); >=20 > But I'd stick to call_user_func()... Hey, why not enable then this "getCallback()();"? but yes, call_user_func should remain there alone in the combination = with call_user_func_array. Bob Weinand= --Apple-Mail=_40E410DC-EFF2-4A6B-98C6-5383A5C363B0--