]> granicus.if.org Git - php/commitdiff
Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 15 Oct 2003 03:31:29 +0000 (03:31 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 15 Oct 2003 03:31:29 +0000 (03:31 +0000)
ext/mssql/php_mssql.c

index 4d78518ec0357c7d553f9f7f8ad434e60081b8df..027175dafa0d0501077dd14756834549c4620637 100644 (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;