Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66653 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68923 invoked from network); 15 Mar 2013 15:59:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2013 15:59:14 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.174 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.220.174 mail-vc0-f174.google.com Received: from [209.85.220.174] ([209.85.220.174:35320] helo=mail-vc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/C3-51298-15543415 for ; Fri, 15 Mar 2013 10:59:14 -0500 Received: by mail-vc0-f174.google.com with SMTP id hx10so1338919vcb.19 for ; Fri, 15 Mar 2013 08:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=nmPlWOk+lG3FrpPgN5ByyJHefO9H2zhEujgOTckMT+k=; b=dvWWEACQuTWF7HYu7SJq2DDFImpQk+s0YNVqEqeWN4nYwNZQ9vNXcCtsuVPd6PZwG+ Q5D1EGe0IJM6HluMnCiYZb0bytA9bnBD8LaqK5EIC5ppku6s47kHlJS8T9XBRMflJmm1 thRXTjVEZ4rQgSqVayQYOCHTsCS/d+j0rHgcT9Dp7CEhmoHjiIfs6VtqsPVvaLZKnody 2nsZmGhh4XikgCXsgw+JtDPM6onqoa4I12mVb35Bm0u81pl5q1xZq/T5gXwkPJnGYx2t PFYoZoh2+utNkcF/XoIV2Igwd0Z3a7hbzlyJ4dhkq+VfPAbS88e3EVi0SHsSiOdbgn6V 5WUQ== MIME-Version: 1.0 X-Received: by 10.220.151.141 with SMTP id c13mr7588325vcw.64.1363363151457; Fri, 15 Mar 2013 08:59:11 -0700 (PDT) Received: by 10.58.56.137 with HTTP; Fri, 15 Mar 2013 08:59:11 -0700 (PDT) In-Reply-To: References: <51432E01.7090502@mrclay.org> <51433530.5040707@gmail.com> Date: Fri, 15 Mar 2013 11:59:11 -0400 Message-ID: To: Bob Weinand Cc: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=f46d043be02657eced04d7f8b83a Subject: Re: [PHP-DEV] Could we kill call_user_func? From: ircmaxell@gmail.com (Anthony Ferrara) --f46d043be02657eced04d7f8b83a Content-Type: text/plain; charset=ISO-8859-1 Bob, call_user_func is not call_user_func_array > > call_user_func($func) is the same as $func(). In any way. > Not in any way. call_user_func accepts any expression for the function to call. `$func()` only accepts callables. Example: call_user_func(getCallback()); getCallback()(); // <-- syntax error. You *could* solve it with variable foo: ${'_'.!$_=getCallback()}(); But I'd stick to call_user_func()... --f46d043be02657eced04d7f8b83a--