Browse Source

TSRM fix

PHP-5.0
Edin Kadribasic 22 years ago
parent
commit
e489d93abc
  1. 5
      ext/sybase_ct/php_sybase_ct.c

5
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;
}
}

Loading…
Cancel
Save