Bug #13923: The PEAR error object returned by DB::connect is not recognized as such

From: Date: Sun, 04 Nov 2001 23:09:58 +0000
Subject: Bug #13923: The PEAR error object returned by DB::connect is not recognized as such
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2540@lists.php.net to get a copy of this message
From: vigna@dsi.unimi.it Operating system: Red Hat Linux PHP version: 4.0.6 PHP Bug Type: PEAR related Bug description: The PEAR error object returned by DB::connect is not recognized as such My PHP setup is a standard RH 7.2 PHP installation. After trying to open a MySQL database using the PEAR database abstraction layer, using a username that does not exists and no password (but an existing database), I get the following error object: db_error Object ( [error_message_prefix] => [error_prepend] => [error_append] => [mode] => 1 [level] => 1024 [code] => -1 [message] => DB Error: unknown error [debuginfo] => [userinfo] => mysql://webuser@localhost/DSI [callback] => ) However, db::isError() returns *FALSE* on this object. Thus, I cannot distinguish whether the database connection has been established or not. -- Edit bug report at: http://bugs.php.net/?id=13923&edit=1

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