'l' is long - int won't work on 64-bit

This commit is contained in:
Stanislav Malyshev 2004-11-26 13:17:30 +00:00
parent 2ec1f4d16a
commit 808d9b035f

View File

@ -1581,7 +1581,8 @@ PHP_FUNCTION(sqlite_fetch_column_types)
zval *object = getThis();
struct php_sqlite_result res;
const char **rowdata, **colnames, *tail;
int i, ncols, result_type = PHPSQLITE_ASSOC;
int i, ncols;
long result_type = PHPSQLITE_ASSOC;
if (object) {
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &tbl, &tbl_len, &result_type)) {