diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-10-16 04:24:07 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-10-16 04:24:07 +0000 |
commit | 1459361c3e6b1e346725809fdc41c36b798bd43f (patch) | |
tree | 72dc65b48dcf49b01fe3f3d649e005682978eb61 | |
parent | 3a6ea5b696c8fb68f93baf276a5a28618d6dc8e3 (diff) | |
download | php-git-1459361c3e6b1e346725809fdc41c36b798bd43f.tar.gz |
Do not strip trailing spaces.
-rw-r--r-- | ext/sybase/php_sybase_db.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c index aec500abcd..d4a49d4ce1 100644 --- a/ext/sybase/php_sybase_db.c +++ b/ext/sybase/php_sybase_db.c @@ -734,7 +734,7 @@ static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pva but i don't have sybase here to test 991105 thies@thieso.net */ dbconvert(NULL,coltype(offset),dbdata(sybase_ptr->link,offset), src_length,SYBCHAR,res_buf,res_length); - +#if ilia_0 /* get rid of trailing spaces */ p = res_buf + res_length; while (p >= res_buf && (*p == ' ' || *p == '\0')) { @@ -742,8 +742,7 @@ static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pva } *(++p) = 0; /* put a trailing NULL */ res_length = p - res_buf; - - +#endif Z_STRLEN_P(result) = res_length; Z_STRVAL_P(result) = res_buf; Z_TYPE_P(result) = IS_STRING; |