freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)
- 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
-
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.