Re: ErrorStack was Exceptions
| From: | Dan Rossi | Date: | Tue, 29 Mar 2005 03:22:52 +0000 |
| Subject: | Re: ErrorStack was Exceptions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18386@lists.php.net to get a copy of this message | ||
On 23/03/2005, at 11:41 AM, Greg Beaver wrote:
Dan Rossi wrote:Here is how I am implementing ErrorStack getting some errors require_once 'PEAR/ErrorStack.php'; class Errors { function errorStack($error) { PEAR_ErrorStack::staticPush('PEAR_Error','error',array('olderror'=>$error),$error-Hmm from looking at the ErrorStack code docs, it requires the push method be used instead of RaiseError in the actual API :|
getMessage()); }} and to set it up PEAR::setErrorHandling(PEAR_ERROR_CALLBACK,array('Errors','errorStack')); i get this Warning: Invalid argument supplied to foreach() in /usr/lib/php/PEAR/ErrorStack.php on line 887 Warning: Ilegal offset type in /usr/lib/php/PEAR/ErrorStack.php on line 572 Any ideas ?