Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: rasmus AT php.net
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: [PHP4BETA] php4+freetds, off-by-1 truncation
  • Date: Fri, 3 Dec 1999 01:16:56 -0500 (Eastern Standard Time)


> I found the same problem using freetds-cvs with all versions of php -
> php3.0.12 php4beta?, php4cvs. It is weird that sqsh works perfectly and
> php+sybase also works.
>
> My configuration:
> Linux kernel 2.2.13 with glibc
> freetds
> ./configure --with-tdsver=4.2
> php4
> ./configure \
> --enable-versioning \
> --enable-track-vars \
> --with-apxs=/usr/local/apache/bin/apxs \
> --with-sybase-ct=/usr/local/freetds
>
> Another different problem is that the latest freetds-cvs + php4cvs works
> with sybase11.9.2, mssql70 but not mssql65. Again, sqsh works with all of
> them.
>
> I'm more leaning towards php bug. Thank you for the excellent job camber!

This really shouldn't be hard to track down. Fire up gdb and step your
way through and see where the off-by-one might be. I don't really have a
Sybase backend to get a decent setup to reproduce this bug, but on a
system where you see the bug it should be relatively straight forward to
fix.

-Rasmus





Archive powered by MHonArc 2.6.24.

Top of Page