diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-10-15 03:31:29 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-10-15 03:31:29 +0000 |
commit | fff7c6098bee4aa836c60876b160de44fdfa7fcd (patch) | |
tree | fa19a01a45b1f0297f6a42e1f31956dd7c4150bc /ext/mssql/php_mssql.c | |
parent | 6c317f5ad9883efd972fb58c0ca74ae65eaa8e89 (diff) | |
download | php-git-fff7c6098bee4aa836c60876b160de44fdfa7fcd.tar.gz |
Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r-- | ext/mssql/php_mssql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 4d78518ec0..027175dafa 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -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; |