PEAR Exceptions

From: Date: Tue, 22 Dec 2009 19:35:56 +0000
Subject: PEAR Exceptions
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-53149@lists.php.net to get a copy of this message
Hi list. I'm not sure if this is a known issue or not, by I just realised that PEAR_Exception implements __toString(). Since this is used by the internal exceptions-handler, the result is used for logging, when the ini directive "log_errors" is set. The problem with this is that __toString will return a HTML-formatted string, which makes a mess of the logfile. I dojn't think it's appropriate for PEAR_Exception to implement this method; That should be left for the error handler to cope with. -- troels

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