Skip to Content.
Sympa Menu

freetds - Re: 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: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)
  • Date: Thu, 18 May 2000 16:58:05 -0400 (EDT)



What version of Freetds are you using? The CVS version appears to have
logic to handle a NULL pointer in res_info.

Brian

On Thu, 18 May 2000, Dan Lukes wrote:

> 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