Skip to content

Commit 706aac5

Browse files
committed
fix amd64 - long != int there
1 parent 5c1b52a commit 706aac5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext/sqlite/sqlite.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static struct php_sqlite_db *php_sqlite_open(char *filename, int mode, char *per
755755
Opens a persistent handle to an SQLite database. Will create the database if it does not exist */
756756
PHP_FUNCTION(sqlite_popen)
757757
{
758-
int mode = 0666;
758+
long mode = 0666;
759759
char *filename, *fullpath, *hashkey;
760760
long filename_len, hashkeylen;
761761
zval *errmsg = NULL;
@@ -830,7 +830,7 @@ PHP_FUNCTION(sqlite_popen)
830830
Opens an SQLite database. Will create the database if it does not exist */
831831
PHP_FUNCTION(sqlite_open)
832832
{
833-
int mode = 0666;
833+
long mode = 0666;
834834
char *filename, *fullpath = NULL;
835835
long filename_len;
836836
zval *errmsg = NULL;
@@ -1055,7 +1055,7 @@ PHP_FUNCTION(sqlite_unbuffered_query)
10551055
struct php_sqlite_db *db;
10561056
char *sql;
10571057
long sql_len;
1058-
int mode = PHPSQLITE_BOTH;
1058+
long mode = PHPSQLITE_BOTH;
10591059
char *errtext = NULL;
10601060

10611061
if (FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
@@ -1091,7 +1091,7 @@ PHP_FUNCTION(sqlite_query)
10911091
struct php_sqlite_db *db;
10921092
char *sql;
10931093
long sql_len;
1094-
int mode = PHPSQLITE_BOTH;
1094+
long mode = PHPSQLITE_BOTH;
10951095
char *errtext = NULL;
10961096

10971097
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,
12761276
PHP_FUNCTION(sqlite_fetch_all)
12771277
{
12781278
zval *zres, *ent;
1279-
int mode = PHPSQLITE_BOTH;
1279+
long mode = PHPSQLITE_BOTH;
12801280
zend_bool decode_binary = 1;
12811281
struct php_sqlite_result *res;
12821282

@@ -1311,7 +1311,7 @@ PHP_FUNCTION(sqlite_fetch_all)
13111311
PHP_FUNCTION(sqlite_fetch_array)
13121312
{
13131313
zval *zres;
1314-
int mode = PHPSQLITE_BOTH;
1314+
long mode = PHPSQLITE_BOTH;
13151315
zend_bool decode_binary = 1;
13161316
struct php_sqlite_result *res;
13171317

@@ -1336,7 +1336,7 @@ PHP_FUNCTION(sqlite_array_query)
13361336
struct php_sqlite_result *rres;
13371337
char *sql;
13381338
long sql_len;
1339-
int mode = PHPSQLITE_BOTH;
1339+
long mode = PHPSQLITE_BOTH;
13401340
char *errtext = NULL;
13411341
zend_bool decode_binary = 1;
13421342

@@ -1523,7 +1523,7 @@ PHP_FUNCTION(sqlite_fetch_single)
15231523
PHP_FUNCTION(sqlite_current)
15241524
{
15251525
zval *zres;
1526-
int mode = PHPSQLITE_BOTH;
1526+
long mode = PHPSQLITE_BOTH;
15271527
zend_bool decode_binary = 1;
15281528
struct php_sqlite_result *res;
15291529

@@ -1697,7 +1697,7 @@ PHP_FUNCTION(sqlite_seek)
16971697
{
16981698
zval *zres;
16991699
struct php_sqlite_result *res;
1700-
int row;
1700+
long row;
17011701

17021702
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zres, &row)) {
17031703
return;

0 commit comments

Comments
 (0)