freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)
- 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
>
-
SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase),
Dan Lukes, 05/18/2000
- <Possible follow-up(s)>
- Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase), Brian Bruns, 05/18/2000
- Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase), Mark Schaal, 05/18/2000
- Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase), Dan Lukes, 05/18/2000
Archive powered by MHonArc 2.6.24.