Skip to content

Commit fff7c60

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)
1 parent 6c317f5 commit fff7c60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mssql/php_mssql.c

+2
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,11 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off
786786
char *data = charcol(offset);
787787

788788
length=dbdatlen(mssql_ptr->link,offset);
789+
#if ilia_0
789790
while (length>0 && data[length-1] == ' ') { /* nuke trailing whitespace */
790791
length--;
791792
}
793+
#endif
792794
Z_STRVAL_P(result) = estrndup(data,length);
793795
Z_STRLEN_P(result) = length;
794796
Z_TYPE_P(result) = IS_STRING;

0 commit comments

Comments
 (0)