RE: [PEAR-DEV] PEAR::DB

From: Date: Mon, 11 Nov 2002 20:43:26 +0000
Subject: RE: [PEAR-DEV] PEAR::DB
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10697@lists.php.net to get a copy of this message
Well since everybody and their little sister kicked me because of the crappy bug report ... This was something that was brought to me by a user on IRC that never filed a bug report and I just remembered that and thought I should share :-) Anyways looking again at the relevant code: function DB_result(&$dbh, $result, $options = array()) { $this->dbh = &$dbh; $this->result = $result; $this->limit_from = isset($options['limit_from']) ? $options['limit_from'] : null; $this->limit_count = isset($options['limit_count']) ? $options['limit_count'] : null; $this->limit_type = $dbh->features['limit']; $this->autofree = $dbh->options['autofree']; $this->fetchmode = $dbh->fetchmode; $this->fetchmode_object_class = $dbh->fetchmode_object_class; } it seems like a badly written driver which does not set $dbh->features['limit'] could result in a warning .. $dbh->options['autofree'] is initialized in common.php ... anyways if any PEAR::DB users will this should be fixed a little isset check short hand if what not should fix it ... Regards, Lukas Smith smith@dybnet.de _______________________________ DybNet Internet Solutions GbR Reuchlinstr. 10-11 Gebäude 4 1.OG Raum 6 (4.1.6) 10553 Berlin Germany Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de info@dybnet.de > -----Original Message----- > From: Lukas Smith [mailto:smith@dybnet.de] > Sent: Monday, November 11, 2002 9:22 PM > To: pear-dev@lists.php.net > Subject: [PEAR-DEV] PEAR::DB > > Hi, > > I just wanted to say that the constructor of DB_result needs to be fixed > ... > The way it currently is it will issue warnings in certain situations > > Regards, > Lukas Smith > smith@dybnet.de > _______________________________ > DybNet Internet Solutions GbR > Reuchlinstr. 10-11 > Gebäude 4 1.OG Raum 6 (4.1.6) > 10553 Berlin > Germany > Tel. : +49 30 83 22 50 00 > Fax : +49 30 83 22 50 07 > www.dybnet.de info@dybnet.de > > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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