mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix Bug #31960: msql_fetch_row() and msql_fetch_array() dropping columns with NULL values
This commit is contained in:
parent
f2eb0acfcf
commit
27b13ba47c
@ -958,9 +958,14 @@ static void php_msql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
|
||||
add_assoc_stringl(return_value, msql_field->name, data, data_len, should_copy);
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
add_get_index_stringl(return_value, i, "", 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user