ID:               15602
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Feature/Change Request
 Operating System: any
 PHP Version:      4.1.1
 New Comment:

- get_object_vars() now works as expected
- a patch was committed against the interbase module to return NULL
fields from Interbase, instead of ignoring them
- a patch is going to be committed to CVS to add an ibase_fetch_assoc()
function



Previous Comments:
------------------------------------------------------------------------

[2002-02-18 15:16:03] [EMAIL PROTECTED]

I know it's documented in the manual, but aside from being less useful
than it could be (sometimes it's useful to get empty object vars too),
it's posing a few problems to the PEAR ibase DB driver.

The PHP interbase module has no way of returning a hash representation
of a row, so the two available solutions are:

a) hack something with ibase_num_fields and ibase_field_info to builf a
hash (often gets Interbase sync errors if used with a hash ref as
target)

b) use ibase_fetch_object and either cast it to array, or use
get_object_vars(), in both cases rows from the same result set have a
different field number, due to missing NULLs and empty values; clearly
this is not acceptable

Two possible solutions:

- modify get_object_vars() to return all object values or
- add an ibase_fetch_array() or whatever function


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15602&edit=1

Reply via email to