heads up: minor PEAR_ErrorStack BC break pending
| From: | Greg Beaver | Date: | Sat, 23 Oct 2004 17:23:14 +0000 |
| Subject: | heads up: minor PEAR_ErrorStack BC break pending | ||
| Groups: | php.pear.dev php.pear.general | ||
| Request: | Send a blank email to pear-dev+get-34039@lists.php.net to get a copy of this message | ||
Hi,
PEAR 1.3.2 will ship with a version of PEAR_ErrorStack that contains two backwards compatibility breaks (that's why it was alpha). First, staticGetErrors() introduces a new optional parameter as the second value that will allow you to retrieve only errors of a certain level (string as in 'error') or set of levels (array as in array('warning', 'error'))
Next, in PHP 5, PEAR_ErrorStack will no longer attempt to instantiate an exception object. Anyone relying on this behavior should modify their code to either create the exception in the callback or modify the return value. This is in keeping with keeping things more orderly.
Greg