RE: [PEAR] MDB 1.1.1 bugs?

From: Date: Thu, 23 Jan 2003 15:16:45 +0000
Subject: RE: [PEAR] MDB 1.1.1 bugs?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3429@lists.php.net to get a copy of this message
> -----Original Message----- > From: Hooimeijer, Martijn [mailto:Martijn.Hooimeijer@logicacmg.com] > Sent: Thursday, January 23, 2003 2:54 PM > To: PEAR > Subject: [PEAR] MDB 1.1.1 bugs? > > 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). Hmm, that sounds like you actually are looking at a pre 1.1.x version of the MDB.php. Also in 1.1.1 the MDB.php was moved from [PEARROOT]/MDB to [PEARROOT]. Did you manually installe/update MDB? > 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). If you read on you will see that you have to pass some argument. Also the API docs show this as well. But I have just changed the tutorial to be a little more specific. Thx for the feedback Regards, Lukas

« previous php.pear.general (#3429) next »