Skip to Content.
Sympa Menu

freetds - SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Dan Lukes" <dan AT fio.cz>
  • To: freetds
  • Subject: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)
  • Date: Thu, 18 May 2000 12:34:19


The sybase_query abend everytime I submit query other than SELECT
(syntaktically incorrect SELECTs abend too).
I look into PHP code - it calls dbnumcols which abend because the
tds->res_info == NULL (and dbnumcols try to return
tds->res_info->num_cols).

Original Sybase's DLLs allow me to call dbnumcols anytime (unless dbproc is
NULL).

It's FreeTDS bug, so I should submit patch (I already have one) ?
Or it is protocol violation to call dbnumcols anytime (so it is PHP bug -
how I should determine if dbnumcols call is allowed ?) ?

(Note: PHP is compiled with --with-sybase not --with-sybase-ct)

Thanx for reply

Dan




Archive powered by MHonArc 2.6.24.

Top of Page