Re: Short question: PEAR_ERROR_EXCEPTION

From: Date: Sat, 21 Jul 2007 18:50:33 +0000
Subject: Re: Short question: PEAR_ERROR_EXCEPTION
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47658@lists.php.net to get a copy of this message
On Sat Jul 21, 2007 at 08:4416PM +0200, Christoph Schiessl wrote: > All the PEAR packages (for example MDB2) are still using > PEAR::raiseError(). Because of that a get PHP warning triggered by > PEAR when an error occurs. MDB2 cannot use PEAR_Exception because it is compatible to PHP 4.x. All new packages for PHP 5 must however use it. See http://pear.php.net/pepr/pepr-proposal-show.php?id=132 for details. > I suppose there's no work around for that? The warning that is emitted is E_USER_WARNING. You could adjust your error reporting level to suppress these. This however is incredibly ugly/wrong/... and most likely not what you want. I have not better suggestion unfortunately, sorry. - Martin

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