Re: call_user_func_array problem?
| From: | Brad Bulger | Date: | Wed, 07 Aug 2002 14:51:22 +0000 |
| Subject: | Re: call_user_func_array problem? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2073@lists.php.net to get a copy of this message | ||
> > > i thought the array('classname','methodname') style for
> > > call_user_func
> > > had been working for a while now - is that not so?
> >
> > used call_user_method() instead.
> >
>
> That function is deprecated since 4.1 :-). The problem here seems to be
> that he is using an old version of the files.
Yep - as a side-effect of the install failing, I guess. I recompiled with
the regular Zend 1.2 code and this particular problem went away.
It is true, though, isn't it, that you should be able to say
call_user_func_array(array('classname','methodname'), $my_arguments)
as well as
call_user_func_array(array(&$my_obj, 'methodname'), $my_arguments)
yes? I've seen it referenced in some bug notes but not in the PHP docs.
Thanks