MDB 1.1.1 bugs?
| From: | Hooimeijer, Martijn | Date: | Thu, 23 Jan 2003 13:53:40 +0000 |
| Subject: | MDB 1.1.1 bugs? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3427@lists.php.net to get a copy of this message | ||
Hi,
I am trying out MDB, version 1.1.1 (which I then would like to connect to
DataObject). I was walking through the tutorial on
http://www.backendmedia.com/MDB/docs/ and I
found it did not work. After
some debugging I discovered that in the MDB.php class, an attempt is made to
instatiate a class MDB_driver_mysql, to be found in the MDB/mysql.php file.
There is no such class in this file and therefore no such connection is
made. The real name of the class is MDB_mysql. I changed this on line 267 of
the MDB/MDB.php file and then I could connect to the database (and create /
update databases with the MDB_Manager). I think this is definitely a bug
(either in the MDB.php file or in the mysql.php file).
Also, in the tutorial the following example code is given:
$connected = $manager->connect();
This does not work. It should be:
$connected = $manager->connect($dbinfo);
(whereby $dbinfo is elsewhere in the script).
Martijn Hooimeijer
IT Consultant
LogicaCMG
Wijhaven 69
3011 WJ Rotterdam
PO Box 22067
3003 DB Rotterdam
T:+31 (0)10 206 1143
F: +31 (0)10 206 11 00
E: Martijn.Hooimeijer@logicacmg.com
www.logicacmg.com
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may
contain proprietary material, confidential information and/or be subject to legal privilege. It
should not be copied, disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any attachment and all copies and
inform the sender. Thank you.