mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Corrected bug in php_mysql_fetch_hash() that prevented columns with NULL values from having both numeric and associative indexes. (Bug 14291)
This commit is contained in:
parent
59a45acca6
commit
3ac1646ef2
1 changed files with 5 additions and 2 deletions
|
@ -1633,10 +1633,13 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type,
|
|||
}
|
||||
} else {
|
||||
/* NULL value. */
|
||||
if (result_type & MYSQL_NUM)
|
||||
if (result_type & MYSQL_NUM) {
|
||||
add_index_null(return_value, i);
|
||||
else
|
||||
}
|
||||
|
||||
if (result_type & MYSQL_ASSOC) {
|
||||
add_assoc_null(return_value, mysql_field->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue