summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2004-11-26 13:08:37 +0000
committerStanislav Malyshev <stas@php.net>2004-11-26 13:08:37 +0000
commit706aac5cb05c874feeb79b2e412379e3b85c66d0 (patch)
tree76abeb012d02376d0e998b0befe403aaad60e5df
parent5c1b52a8e73092e036b82b3edbb96088175d2005 (diff)
downloadphp-git-706aac5cb05c874feeb79b2e412379e3b85c66d0.tar.gz
fix amd64 - long != int there
-rw-r--r--ext/sqlite/sqlite.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index 448eed5a51..0de634b315 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -755,7 +755,7 @@ static struct php_sqlite_db *php_sqlite_open(char *filename, int mode, char *per
Opens a persistent handle to an SQLite database. Will create the database if it does not exist */
PHP_FUNCTION(sqlite_popen)
{
- int mode = 0666;
+ long mode = 0666;
char *filename, *fullpath, *hashkey;
long filename_len, hashkeylen;
zval *errmsg = NULL;
@@ -830,7 +830,7 @@ PHP_FUNCTION(sqlite_popen)
Opens an SQLite database. Will create the database if it does not exist */
PHP_FUNCTION(sqlite_open)
{
- int mode = 0666;
+ long mode = 0666;
char *filename, *fullpath = NULL;
long filename_len;
zval *errmsg = NULL;
@@ -1055,7 +1055,7 @@ PHP_FUNCTION(sqlite_unbuffered_query)
struct php_sqlite_db *db;
char *sql;
long sql_len;
- int mode = PHPSQLITE_BOTH;
+ long mode = PHPSQLITE_BOTH;
char *errtext = NULL;
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
@@ -1091,7 +1091,7 @@ PHP_FUNCTION(sqlite_query)
struct php_sqlite_db *db;
char *sql;
long sql_len;
- int mode = PHPSQLITE_BOTH;
+ long mode = PHPSQLITE_BOTH;
char *errtext = NULL;
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
@@ -1276,7 +1276,7 @@ static void php_sqlite_fetch_column(struct php_sqlite_result *res, zval *which,
PHP_FUNCTION(sqlite_fetch_all)
{
zval *zres, *ent;
- int mode = PHPSQLITE_BOTH;
+ long mode = PHPSQLITE_BOTH;
zend_bool decode_binary = 1;
struct php_sqlite_result *res;
@@ -1311,7 +1311,7 @@ PHP_FUNCTION(sqlite_fetch_all)
PHP_FUNCTION(sqlite_fetch_array)
{
zval *zres;
- int mode = PHPSQLITE_BOTH;
+ long mode = PHPSQLITE_BOTH;
zend_bool decode_binary = 1;
struct php_sqlite_result *res;
@@ -1336,7 +1336,7 @@ PHP_FUNCTION(sqlite_array_query)
struct php_sqlite_result *rres;
char *sql;
long sql_len;
- int mode = PHPSQLITE_BOTH;
+ long mode = PHPSQLITE_BOTH;
char *errtext = NULL;
zend_bool decode_binary = 1;
@@ -1523,7 +1523,7 @@ PHP_FUNCTION(sqlite_fetch_single)
PHP_FUNCTION(sqlite_current)
{
zval *zres;
- int mode = PHPSQLITE_BOTH;
+ long mode = PHPSQLITE_BOTH;
zend_bool decode_binary = 1;
struct php_sqlite_result *res;
@@ -1697,7 +1697,7 @@ PHP_FUNCTION(sqlite_seek)
{
zval *zres;
struct php_sqlite_result *res;
- int row;
+ long row;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zres, &row)) {
return;