From: Tomas V.V.Cox Date: Thu, 19 Apr 2001 23:56:57 +0000 (+0000) Subject: fix small bug on error reporting (PEAR::raiseError params order) X-Git-Tag: php-4.0.6RC1~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf080fb73f18ac79b618fc4a864d869c49814033;p=php fix small bug on error reporting (PEAR::raiseError params order) --- diff --git a/pear/DB.php b/pear/DB.php index 135349a52a..1c7a6f1d76 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -187,8 +187,8 @@ class DB $classname = "DB_${type}"; if (!class_exists($classname)) { - return PEAR::raiseError(DB_ERROR_NOT_FOUND, - null, null, null, null, 'DB_Error', true); + return PEAR::raiseError(null, DB_ERROR_NOT_FOUND, + null, null, null, 'DB_Error', true); } @$obj =& new $classname; @@ -234,8 +234,8 @@ class DB $classname = "DB_${type}"; if (!class_exists($classname)) { - return PEAR::raiseError(DB_ERROR_NOT_FOUND, - null, null, null, null, 'DB_Error', true); + return PEAR::raiseError(null, DB_ERROR_NOT_FOUND, + null, null, null, 'DB_Error', true); } @$obj =& new $classname;