Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)

This commit is contained in:
Ilia Alshanetsky 2003-10-15 03:31:29 +00:00
parent 6c317f5ad9
commit fff7c6098b

View file

@ -786,9 +786,11 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off
char *data = charcol(offset);
length=dbdatlen(mssql_ptr->link,offset);
#if ilia_0
while (length>0 && data[length-1] == ' ') { /* nuke trailing whitespace */
length--;
}
#endif
Z_STRVAL_P(result) = estrndup(data,length);
Z_STRLEN_P(result) = length;
Z_TYPE_P(result) = IS_STRING;