Skip to Content.
Sympa Menu

freetds - [PHP4BETA] php4+freetds, off-by-1 truncation

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: richard AT iguana.co.nz
  • To: php4beta AT lists.php.net
  • Cc: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: [PHP4BETA] php4+freetds, off-by-1 truncation
  • Date: Fri, 3 Dec 1999 10:18:21 +1300 (NZDT)


> > > Hey people.
> > >
> > > We have php4 and freetds working correctly, and talking to the
> > > database (Both versions are CVS from Tuesday) however we have a
> > > slight problem with the sybase-ct module. Now before I go hacking
> > > around, I thought I'd ask if anyone has a good idea why the
> > > following would be happening:
> > >
> > > Strings are all too short by 1 char (final letter is always missing)
> > > Row count is off on occasion.
> > >
> > > I don't believe these two are related particularly, so ideas on one or
> > > both appreciated.

A possibility was offered that it may be a conflict with other libraries,
however we have no other libraries installed. Further details:

The relevant box is a debian box (potato) with:

- Freetds (tuesday CVS)
- PHP4b3 (tuesday CVS) w gd and sybase-ct
- Sybperl (Latest stable from CPAN)
- SQSH (latest stable)

Installed.

SQSH and Sybperl are functioning 100% correctly, PHP is connecting
correctly, and for the most part working, except for the following:

Every string line recieved from a hash is one character short

My conclusion from this is that for some reason the Sybase-ct module in
PHP is setting the length wrong or similar.

My previous note about invalid row counts I haven't been able to verify
(however I have regards the one-char-short issue) so this may not be a
problem.

Richard.





Archive powered by MHonArc 2.6.24.

Top of Page