DB.php still not quite right ...

From: Date: Thu, 19 Apr 2001 21:09:09 +0000
Subject: DB.php still not quite right ...
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-274@lists.php.net to get a copy of this message
This script: <?php require_once 'DB.php'; $x = DB::factory('foobar'); print_r($x); ?> Outputs: db_error Object ( [error_message_prefix] => [error_prepend] => [error_append] => [mode] => 1 [level] => 1024 [code] => -1 [message] => DB Error: [debuginfo] => [userinfo] => [callback] => ) Shouldn't [code] be "-4" (i.e., DB_ERROR_NOT_FOUND) and [message] be "DB Error: not found"? Maybe a small bug in PEAR::raiseError? - Colin

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