Re: cvs: php4 /pear PEAR.php
| From: | Thies C. Arntzen | Date: | Sat, 04 Aug 2001 10:49:20 +0000 |
| Subject: | Re: cvs: php4 /pear PEAR.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-419@lists.php.net to get a copy of this message | ||
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],...) ?
re,
tc