Re: call_user_func_array problem?
| From: | Tomas V.V.Cox | Date: | Wed, 07 Aug 2002 14:54:34 +0000 |
| Subject: | Re: call_user_func_array problem? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2071@lists.php.net to get a copy of this message | ||
Pierre-Alain Joye wrote:
>
> On Tue, 6 Aug 2002 22:26:06 -0700 (PDT)
> Brad Bulger <tater@potatoe.com> wrote:
>
> >
> > trying to build recent version of 4.3, pear gets an error:
> >
> > Warning: call_user_func(): First argumented is expected to be a valid callback,
> > 'PEAR_Command_Build::getCommands' was given in
> > /usr/local/book/php/share/pear/PEAR/Command.php on line 180
> >
> > where Command.php is doing
> >
> > $implements = call_user_func(array($class, "getCommands"));
> >
> > 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.
Tomas V.V.Cox