Re: Interbase DB, again =)

From: Date: Mon, 18 Feb 2002 14:52:24 +0000
Subject: Re: Interbase DB, again =)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4778@lists.php.net to get a copy of this message
Ludovico Magnocavallo wrote: > > Following up on the thread on DB_FETCHMODE_ASSOC and Interbase, which was > fixed by Tomas a few weeks ago, I am a bit unsure on the functionality of > the fix. > > The following code (ibase.php 153-154): > > if ($fetchmode & DB_FETCHMODE_ASSOC) { > $ar = get_object_vars(ibase_fetch_object($result)); > > ignores empty or null fields, therefore on a multi-rows result set, the > number of fields returned varies from row to row. Clearly this is not a good > behaviour for a db driver =) Can you try to find if it's a behavior of get_object_vars() or ibase_fetch_object()? For ex: $a = ibase_fetch_object($result); var_dump($a); $ar = get_object_vars($a); var_dump($ar); To see where the vars dissapears. If it's the second, the problem will have to be attended by the creator of the ibase extension. If not it will seem to be a bug in get_object_vars() :-) Tomas V.V.Cox

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