Skip to Content.
Sympa Menu

freetds - Convert seems totally broken now (PHP, CVS 2002-08-09)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: <lbayuk AT mindspring.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Convert seems totally broken now (PHP, CVS 2002-08-09)
  • Date: Sun, 11 Aug 2002 20:26:00 -0400 (EDT)


About a month ago, I reported that the CVS snapshot (2002-07-05) had a
problem with loss of the last character on TEXT fields. I just tried the
2002-08-09 CVS snapshot and was discouraged to find the situation is much
worse. I'm now missing the last character on INTEGER and DATE/TIME types;
CHARACTER types are padded with null bytes to one less then their length
(these nulls are visible in PHP; they are not taken as end of string), and
TEXT types don't seem to contain any valid data.

I'm using PHP-4.2.2 talking to Sybase ASA using TDS5 protocol, both sides
i386, using FreeTDS ctlib. PHP always asks ct_bind to convert to character
strings, but PHP and FreeTDS obviously have different ideas of what the
result string length means. I watched a lot of discussion on the list
about redesigning tds/convert.c but I thought that had stabilized by now.
This is not a good situation. Is there anything I can do to help?




Archive powered by MHonArc 2.6.24.

Top of Page