Re: last Pear.php.in and DB.php commit
| From: | Tomas V.V.Cox | Date: | Thu, 19 Apr 2001 13:16:47 +0000 |
| Subject: | Re: last Pear.php.in and DB.php commit | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-271@lists.php.net to get a copy of this message | ||
Stig Sæther Bakken wrote:
>
Nice hack Stig, let's hurry up to document it :)
I recomend to include also this small patch, commented here:
******************************raiseError
@@ -303,7 +303,7 @@
}
if ($error_class !== null) {
$ec = $error_class;
- } elseif (isset($this)) {
+ } elseif (isset($this) && isset($this->_error_class)) {
$ec = $this->_error_class;
} else {
$ec = 'PEAR_Error';
Useful is someone forget to do the $this->PEAR(), so always have an
error class.
*****************************PEAR_Error constructor
@@ -358,7 +358,6 @@
var $level = E_USER_NOTICE;
var $code = -1;
var $message = '';
- var $debuginfo = '';
Not more needed
Regards,
Tomas V.V.Cox