mirror of
https://github.com/php/php-src.git
synced 2025-01-27 14:13:41 +08:00
Correction for bug #21279
This commit is contained in:
parent
4c2d6cfea8
commit
b588e10553
@ -1612,7 +1612,7 @@ PHP_FUNCTION(odbc_fetch_into)
|
||||
if (rc == SQL_SUCCESS_WITH_INFO) {
|
||||
Z_STRLEN_P(tmp) = result->longreadlen;
|
||||
} else if (result->values[i].vallen == SQL_NULL_DATA) {
|
||||
Z_STRVAL_P(tmp) = empty_string;
|
||||
Z_STRVAL_P(tmp) = IS_NULL;
|
||||
break;
|
||||
} else {
|
||||
Z_STRLEN_P(tmp) = result->values[i].vallen;
|
||||
@ -1622,7 +1622,7 @@ PHP_FUNCTION(odbc_fetch_into)
|
||||
|
||||
default:
|
||||
if (result->values[i].vallen == SQL_NULL_DATA) {
|
||||
Z_STRVAL_P(tmp) = empty_string;
|
||||
Z_STRVAL_P(tmp) = IS_NULL;
|
||||
break;
|
||||
}
|
||||
Z_STRLEN_P(tmp) = result->values[i].vallen;
|
||||
|
Loading…
Reference in New Issue
Block a user