mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)
This commit is contained in:
parent
6c317f5ad9
commit
fff7c6098b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue