RE: [PEAR-DEV] Bug in DB::tableInfo mysql - php5.0.3

From: Date: Wed, 19 Jan 2005 08:54:41 +0000
Subject: RE: [PEAR-DEV] Bug in DB::tableInfo mysql - php5.0.3
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35603@lists.php.net to get a copy of this message
Daniel Convissor wrote on Tuesday, January 18, 2005 11:25 PM: > On Tue, Jan 18, 2005 at 04:26:48PM -0500, Matt Friedman wrote: >> 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.' > > That's a bug in PHP 5.0.3. It's been fixed in PHP and will > show up in > 5.0.4. I noticed that bug, too. IMHO the DB function should use is_object and is_a, I don't like to do an isset($object->member) if I don't know if the $object is really an object?! -- soenke

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