Index: php_msql.c =================================================================== RCS file: /repository/php-src/ext/msql/php_msql.c,v retrieving revision 1.49.4.1 diff -u -r1.49.4.1 php_msql.c --- php_msql.c 31 Dec 2002 16:34:57 -0000 1.49.4.1 +++ php_msql.c 15 Feb 2005 14:32:54 -0000 @@ -960,9 +960,14 @@ add_assoc_stringl(return_value, msql_field->name, data, data_len, should_copy); } } else { - /* - add_get_index_stringl(return_value, i, empty_string, 0, (void **) &pval_ptr, 1); - */ + /* NULL value. */ + if (result_type & MSQL_NUM) { + add_index_null(return_value, i); + } + + if (result_type & MSQL_ASSOC) { + add_assoc_null(return_value, msql_field->name); + } } } }