Re: cvs: php4 /pear PEAR.php

From: Date: Sat, 04 Aug 2001 10:59:25 +0000
Subject: Re: cvs: php4 /pear PEAR.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-420@lists.php.net to get a copy of this message
"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? Tomas V.V.Cox

« previous php.pear.cvs (#420) next »