Re: [PHP4BETA] off by one error strikes back

From: Date: Thu, 09 Dec 1999 04:15:31 +0000
Subject: Re: [PHP4BETA] off by one error strikes back
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7702@lists.php.net to get a copy of this message
> Except this time in the opposite direction. It appears we're now getting a > NULL on the end of string data pulled from a sybase table. > > Platform: debian slink with latest (as of Dec 9, 4pm NZDT) cvs of both > freetds and php4. > Well, I've found something that solves the problem, but I doubt its a real solution :) ct.c line 391 in freetds latest cvs: len = tds_convert(srctype,src, curcol->column_size, desttype,curcol->varaddr,curcol->column_bindlen); Changed to: len = tds_convert(srctype,src, curcol->column_size, desttype,curcol->varaddr,curcol->column_bindlen)-1; Resulted in me getting the right data back. Now from what I can tell of this, blobs may still be broken (I don't know what the standard is), and I may well have changed the wrong thing. Richard.

« previous php.version4 (#7702) next »