Re: Could we kill call_user_func?

From: Date: Mon, 18 Mar 2013 15:17:08 +0000
Subject: Re: Could we kill call_user_func?
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-66689@lists.php.net to get a copy of this message
On Mon, 18 Mar 2013 19:03:41 +0400, Julien Pauli <jpauli@php.net> wrote:
On Mon, Mar 18, 2013 at 3:33 PM, Anthony Ferrara <ircmaxell@gmail.com>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.

« previous php.internals (#66689) next »