bug in mysql code?

From: Date: Thu, 21 Jun 2001 19:50:52 +0000
Subject: bug in mysql code?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-484@lists.php.net to get a copy of this message
Say you have: $DB = DB::connect('mysql://user:pass@machine.com/database'); And "database" does not exist, then the above code will spit out: <b>Warning</b>: Supplied argument is not a valid MySQL-Link resource in <b>/usr/local/share/php/pear/DB/mysql.php</b> on line <b>437</b><br> <br> <b>Warning</b>: Supplied argument is not a valid MySQL-Link resource in <b>/usr/local/share/php/pear/DB/mysql.php</b> on line <b>440</b><br> This is even before a check with DB::isError($DB). I think a check in mysqlRaiseError() to see if you are actually connected first is required. -- Colin Viebrock Co-Founder, easyDNS Technologies Inc. http://www.easyDNS.com/

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