Following up from bug #15602, I have written a patch to return NULL and
empty fields from ibase_fetch_row() and ibase_fetch_object().
The current implementation of those two functions skips (ignores) empty or
NULL fields, returning rows of different lenghts in a result set, depending
of the number of NULL fields in each row.
Daniela Mariaschi
Index: interbase.c
===================================================================
RCS file: /repository/php4/ext/interbase/interbase.c,v
retrieving revision 1.75
diff -r1.75 interbase.c
2109c2109
< break;
---
> break;
2119c2119,2125
< } /* if not null */
---
> } else {
> if (fetch_type & FETCH_ARRAY) {
> add_index_null(return_value, i);
> } else {
> add_property_null(return_value,
var->aliasname);
> }
> }
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php