Re: cvs: php4 /pear PEAR.php
| From: | Tomas V.V.Cox | Date: | Sat, 04 Aug 2001 11:18:07 +0000 |
| Subject: | Re: cvs: php4 /pear PEAR.php | ||
| References: | 1 2 3 4 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-422@lists.php.net to get a copy of this message | ||
"Thies C. Arntzen" wrote:
>
> On Sat, Aug 04, 2001 at 12:59:25PM +0200, Tomas V.V.Cox wrote:
> > "Thies C. Arntzen" wrote:
> > >
> > > On Sat, Aug 04, 2001 at 10:47:10AM -0000, Thomas V.V.Cox wrote:
> > > > cox Sat Aug 4 06:47:10 2001 EDT
> > > >
> > > > Modified files:
> > > > /php4/pear PEAR.php
> > > > Log:
> > > > don't show the call_user_method deprecated use warning (disturbs tests)
> > > >
> > > >
> > > > Index: php4/pear/PEAR.php
> > > > diff -u php4/pear/PEAR.php:1.10 php4/pear/PEAR.php:1.11
> > > > --- php4/pear/PEAR.php:1.10 Tue Jul 31 03:57:12 2001
> > > > +++ php4/pear/PEAR.php Sat Aug 4 06:47:10 2001
> > > > @@ -17,7 +17,7 @@
> > > > // | Stig Bakken <ssb@fast.no>
> > > > |
> > > > // +----------------------------------------------------------------------+
> > > > //
> > > > -// $Id: PEAR.php,v 1.10 2001/07/31 07:57:12 ssb Exp $
> > > > +// $Id: PEAR.php,v 1.11 2001/08/04 10:47:10 cox Exp $
> > > > //
> > > >
> > > > define('PEAR_ERROR_RETURN', 1);
> > > > @@ -497,7 +497,7 @@
> > > > is_object($this->callback[0]) &&
> > > > is_string($this->callback[1]) &&
> > > > strlen($this->callback[1])) {
> > > > - call_user_method($this->callback[1], $this->callback[0],
> > > > + @call_user_method($this->callback[1],
> > > > $this->callback[0],
> > >
> > > wouldn't it make more sense to change this to
> > > call_user_func(array(&$this->callback[1],...) ?
> > >
> >
> > I didn't know call_user_func() supports an array as it first param (at
> > least not in the doc). From wich version?
>
> been a while - but it hasn't been mentioned in the NEWS file.
> but the change should be widely visible thru the notice
> call_user_method() throws;-)
>
Yeah :) The problem is if this change is very new or not. We had some
problems with old php version incompatibilities and think that don't
want to increase them :-) At least >= 4.0.4 should be supported.
Tomas V.V.Cox