Re: Feature Request of PEAR_ERROR: PEAR_ERROR_DIE_SILENT

From: Date: Wed, 29 Oct 2003 23:51:27 +0000
Subject: Re: Feature Request of PEAR_ERROR: PEAR_ERROR_DIE_SILENT
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23128@lists.php.net to get a copy of this message
Hi Arjen, I would suggest implementing this in a child class for your own project, and pass that in to raiseError() as the classname. Alternatively, you should simply use PEAR_ERROR_CALLBACK, and pass in a function that is a wrapper to die() function kill() {
    die();
} PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'kill'); This would require no changes to existing code. Regards, Greg Arjen Brouwer wrote:
Hi, Can you implement a PEAR_ERROR_DIE_SILENT, I don't want to print the errormessage when I do a PEAR_ERROR_DIE. Cheers, Arjen


« previous php.pear.dev (#23128) next »