mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFB: Revert patch for bug #44325
This commit is contained in:
parent
e0d8f5c8bc
commit
1aab3a9b41
@ -2056,19 +2056,14 @@ PHP_FUNCTION(mssql_bind)
|
|||||||
|
|
||||||
/* modify datalen and maxlen according to dbrpcparam documentation */
|
/* modify datalen and maxlen according to dbrpcparam documentation */
|
||||||
if ( (type==SQLVARCHAR) || (type==SQLCHAR) || (type==SQLTEXT) ) { /* variable-length type */
|
if ( (type==SQLVARCHAR) || (type==SQLCHAR) || (type==SQLTEXT) ) { /* variable-length type */
|
||||||
if (is_null || Z_TYPE_PP(var) == IS_NULL) {
|
if (is_null) {
|
||||||
maxlen=0;
|
maxlen=0;
|
||||||
datalen=0;
|
datalen=0;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
convert_to_string_ex(var);
|
convert_to_string_ex(var);
|
||||||
datalen = Z_STRLEN_PP(var);
|
datalen=Z_STRLEN_PP(var);
|
||||||
value = (LPBYTE)Z_STRVAL_PP(var);
|
value=(LPBYTE)Z_STRVAL_PP(var);
|
||||||
if (!datalen) {
|
|
||||||
datalen = 1;
|
|
||||||
if (maxlen == -1) {
|
|
||||||
maxlen = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { /* fixed-length type */
|
else { /* fixed-length type */
|
||||||
|
Loading…
Reference in New Issue
Block a user