Bug in DB::tableInfo mysql - php5.0.3

From: Date: Tue, 18 Jan 2005 21:26:48 +0000
Subject: Bug in DB::tableInfo mysql - php5.0.3
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35590@lists.php.net to get a copy of this message
Has anyone noticed a bug in DB::tableInfo (mysql and php5.0.3) where if you pass a string the first condition returns true and as such you get a `Trying to get property of non-object error.' For example If I call DB::tableInfo("mytable") // here is what happens... if(isset($result->result)) { // the isset here returns true even when passed a string. } is this a bug in php or DB? Is there a workaround someone can suggest? If it is a DB bug, let me know and I'll put in a bug report. Thanks, -- Matt Friedman "A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering." -- Freeman Dyson

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