Pear DB raiseError bug?

From: Date: Thu, 24 May 2001 18:41:20 +0000
Subject: Pear DB raiseError bug?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-480@lists.php.net to get a copy of this message
I found that Pear DB is returning PEAR_Error objects instead of DB_Error. As common::raiseError now uses PEAR::raiseError, it needs the type of error class to return, no? I've fixed it with: RCS file: /repository/php4/pear/DB/common.php,v retrieving revision 1.48 diff -u -r1.48 common.php --- php4/pear/DB/common.php 2001/04/24 11:47:01 1.48 +++ php4/pear/DB/common.php 2001/05/24 17:44:18 @@ -171,7 +171,7 @@ } return parent::raiseError(null, $code, $mode, $options, $userinfo, - null, true); + 'DB_Error', true); } // }}} Is this good? Commit it? Tomas V.V.Cox

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