From e489d93abcffc58d8a0bc48380e5426666bf6eac Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Tue, 18 May 2004 10:53:53 +0000 Subject: TSRM fix --- ext/sybase_ct/php_sybase_ct.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/sybase_ct/php_sybase_ct.c') diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index a5c9affb83..90d2dc8aad 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -1085,10 +1085,11 @@ static int php_sybase_finish_results (sybase_result *result) return retcode; } -static int php_sybase_fetch_result_row (sybase_result *result, int numrows) +static int php_sybase_fetch_result_row (sybase_result *result, int numrows) { int i, j; CS_INT retcode; + TSRMLS_FETCH(); /* We've already fetched everything */ if (result->last_retcode == CS_END_DATA || result->last_retcode == CS_END_RESULTS) { @@ -1133,7 +1134,7 @@ static int php_sybase_fetch_result_row (sybase_result *result, int numrows) /* This signals we have an integer datatype, but we need to convert to double if we * overflow. */ - convert_scalar_to_number(&result->data[i][j]); + convert_scalar_to_number(&result->data[i][j] TSRMLS_CC); break; } } -- cgit v1.2.1