diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-10-15 03:32:18 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-10-15 03:32:18 +0000 |
| commit | 4191d2bde11957c6e845edaf01ca417ddad5fdb5 (patch) | |
| tree | 1f876fff1cbd8c06bec08006d7d8e56258745cf7 /ext/mssql/php_mssql.c | |
| parent | ef14bdb6911d4e13fa3c796d0b9f6a6a08f2187f (diff) | |
| download | php-git-4191d2bde11957c6e845edaf01ca417ddad5fdb5.tar.gz | |
MFH: 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 177437602f..1956b22af4 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -784,9 +784,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; |
