Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31563 invoked from network); 18 Mar 2013 15:17:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2013 15:17:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:37290] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/D5-31424-BFF27415 for ; Mon, 18 Mar 2013 10:17:16 -0500 Received: by mail-la0-f46.google.com with SMTP id fq12so6226751lab.19 for ; Mon, 18 Mar 2013 08:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=Oeulk9f1WXXefAF+RdiZYsqkHuzqq4JI8/0vozHmf6g=; b=RBFMQrGMvPg0AEXwqLVVkgTpWC/r/o110d7bXDbdD401zKhsU2yIQpuIPRkX99wvJY wxZbvFMwcI79lUfqyt0/Tad1oHnYLzO6+tg/QeBGmxVJA8wIEa/Fum37ZWMQpI6aUcyv KYO3KvvqoVcCMd/GjqRfOLgWBvgZTLeXFGEr4/4GnQDwFA4F8lJicfslAowx/hvMlphh LXZb+U6eg3QCBdqbr4l0s0UOCliHNX4atdcF3YEsrUzk7tSJzyTKHj66Gokh+uakMg58 Y4aOWFLjkapa5SebFv0d0E1yquqdSs0sOf2Fj/nH+N7A34NnFC2dQ1Mocmjk4inIJbxG 9Dmg== X-Received: by 10.112.5.6 with SMTP id o6mr6522906lbo.57.1363619832400; Mon, 18 Mar 2013 08:17:12 -0700 (PDT) Received: from nikita2206-n56vj ([217.174.184.92]) by mx.google.com with ESMTPS id m1sm5561400lbh.5.2013.03.18.08.17.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 18 Mar 2013 08:17:10 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Anthony Ferrara" , "Julien Pauli" Cc: =?utf-8?Q?=C3=81ngel_Gonz=C3=A1lez?= , "Sara Golemon" , "PHP Developers Mailing List" References: <51432E01.7090502@mrclay.org> <51433530.5040707@gmail.com> <514724AA.1080600@gmail.com> Date: Mon, 18 Mar 2013 19:17:08 +0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/12.14 (Linux) Subject: Re: [PHP-DEV] Could we kill call_user_func? From: inefedor@gmail.com ("Nikita Nefedov") On Mon, 18 Mar 2013 19:03:41 +0400, Julien Pauli wrote: > On Mon, Mar 18, 2013 at 3:33 PM, Anthony Ferrara > wrote: > >> Angel, >> >> On 18/03/13 14:04, Julien Pauli wrote: >>> > Also, AFAIR, call_user_func() doesn't work with functions using >>> > references in args. Julien.Pauli >>> AFAIK it does. >>> Do you have an example where it doesn't? >>> >> >> It definitely does not: >> >> http://3v4l.org/C8Kme >> >> And if you try call-time-pass-by-reference, it gets worse: >> >> http://3v4l.org/pI89l >> >> > Yeah, that's what I remembered. call_user_func() is not exactly the same > as > calling the function, when references come to scene, it just wont work. > > Same with _array() implementation. > > Julien.Pauli call_user_func_array will work ok. This is the only call_user_func problem.