Re: cvs: php4 /pear PEAR.php.in

From: Date: Fri, 20 Apr 2001 15:06:43 +0000
Subject: Re: cvs: php4 /pear PEAR.php.in
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-64@lists.php.net to get a copy of this message
I'll make a userland interface to zend_is_callable(). On Thu, 19 Apr 2001, Stig Bakken wrote: > ssb Wed Apr 18 19:33:24 2001 EDT > > Modified files: > /php4/pear PEAR.php.in > Log: > * check that error callbacks exist > > > Index: php4/pear/PEAR.php.in > diff -u php4/pear/PEAR.php.in:1.25 php4/pear/PEAR.php.in:1.26 > --- php4/pear/PEAR.php.in:1.25 Mon Apr 16 18:51:26 2001 > +++ php4/pear/PEAR.php.in Wed Apr 18 19:33:24 2001 > @@ -17,7 +17,7 @@ > // | Stig Bakken <ssb@fast.no> | > // +----------------------------------------------------------------------+ > // > -// $Id: PEAR.php.in,v 1.25 2001/04/17 01:51:26 ssb Exp $ > +// $Id: PEAR.php.in,v 1.26 2001/04/19 02:33:24 ssb Exp $ > // > > define('PEAR_ERROR_RETURN', 1); > @@ -212,9 +212,9 @@ > > case PEAR_ERROR_CALLBACK: > $setmode = $mode; > - if (is_string($options) || > - (is_array($options) && sizeof($options) == 2 && > - is_object($options[0]) && is_string($options[1]))) { > + if ((is_string($options) && function_exists($options)) || > + (is_array($options) && method_exists(@$options[0], @$options[1]))) > + { > $setcallback = $options; > } else { > trigger_error("invalid error callback", E_USER_WARNING); > > > > -- > PEAR CVS Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: pear-cvs-unsubscribe@lists.php.net > For additional commands, e-mail: pear-cvs-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -Andrei Complexity in the mind is not caused by learning; learning is caused by complexity in the mind. -- Steven Pinker

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