mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user