Re: bug in PEAR/DB/mysql.php line 533

From: Date: Wed, 15 Aug 2001 23:23:34 +0000
Subject: Re: bug in PEAR/DB/mysql.php line 533
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1513@lists.php.net to get a copy of this message
Oks, thanks, corrected in CVS :-) "Yermo M. Lamers" wrote: > > I checked out the CVS version last night (I guess I should have checked > the latest version before posting ... sorry about that) > > It's in tableInfo(), the last method in DB/mysql.php: > > // free the result only if we were called on a table > if ($table) { > @mysql_free_result($id); > } > return $res; > } > > // }}} > > // TODO/wishlist: > // simpleFetch > // simpleGet > // longReadlen > // binmode > } > > I have warnings turned on and I get an error on the if ($table) { line. > It looks like $table isn't initialized anywhere. The result needs to be > freed if we did a mysql_list_field() .. so it looks like that line needs > to be something like > > if ( is_string( $result ) ) { > > -- Yermo >

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