@@ -755,7 +755,7 @@ static struct php_sqlite_db *php_sqlite_open(char *filename, int mode, char *per
755
755
Opens a persistent handle to an SQLite database. Will create the database if it does not exist */
756
756
PHP_FUNCTION (sqlite_popen )
757
757
{
758
- int mode = 0666 ;
758
+ long mode = 0666 ;
759
759
char * filename , * fullpath , * hashkey ;
760
760
long filename_len , hashkeylen ;
761
761
zval * errmsg = NULL ;
@@ -830,7 +830,7 @@ PHP_FUNCTION(sqlite_popen)
830
830
Opens an SQLite database. Will create the database if it does not exist */
831
831
PHP_FUNCTION (sqlite_open )
832
832
{
833
- int mode = 0666 ;
833
+ long mode = 0666 ;
834
834
char * filename , * fullpath = NULL ;
835
835
long filename_len ;
836
836
zval * errmsg = NULL ;
@@ -1055,7 +1055,7 @@ PHP_FUNCTION(sqlite_unbuffered_query)
1055
1055
struct php_sqlite_db * db ;
1056
1056
char * sql ;
1057
1057
long sql_len ;
1058
- int mode = PHPSQLITE_BOTH ;
1058
+ long mode = PHPSQLITE_BOTH ;
1059
1059
char * errtext = NULL ;
1060
1060
1061
1061
if (FAILURE == zend_parse_parameters_ex (ZEND_PARSE_PARAMS_QUIET ,
@@ -1091,7 +1091,7 @@ PHP_FUNCTION(sqlite_query)
1091
1091
struct php_sqlite_db * db ;
1092
1092
char * sql ;
1093
1093
long sql_len ;
1094
- int mode = PHPSQLITE_BOTH ;
1094
+ long mode = PHPSQLITE_BOTH ;
1095
1095
char * errtext = NULL ;
1096
1096
1097
1097
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,
1276
1276
PHP_FUNCTION (sqlite_fetch_all )
1277
1277
{
1278
1278
zval * zres , * ent ;
1279
- int mode = PHPSQLITE_BOTH ;
1279
+ long mode = PHPSQLITE_BOTH ;
1280
1280
zend_bool decode_binary = 1 ;
1281
1281
struct php_sqlite_result * res ;
1282
1282
@@ -1311,7 +1311,7 @@ PHP_FUNCTION(sqlite_fetch_all)
1311
1311
PHP_FUNCTION (sqlite_fetch_array )
1312
1312
{
1313
1313
zval * zres ;
1314
- int mode = PHPSQLITE_BOTH ;
1314
+ long mode = PHPSQLITE_BOTH ;
1315
1315
zend_bool decode_binary = 1 ;
1316
1316
struct php_sqlite_result * res ;
1317
1317
@@ -1336,7 +1336,7 @@ PHP_FUNCTION(sqlite_array_query)
1336
1336
struct php_sqlite_result * rres ;
1337
1337
char * sql ;
1338
1338
long sql_len ;
1339
- int mode = PHPSQLITE_BOTH ;
1339
+ long mode = PHPSQLITE_BOTH ;
1340
1340
char * errtext = NULL ;
1341
1341
zend_bool decode_binary = 1 ;
1342
1342
@@ -1523,7 +1523,7 @@ PHP_FUNCTION(sqlite_fetch_single)
1523
1523
PHP_FUNCTION (sqlite_current )
1524
1524
{
1525
1525
zval * zres ;
1526
- int mode = PHPSQLITE_BOTH ;
1526
+ long mode = PHPSQLITE_BOTH ;
1527
1527
zend_bool decode_binary = 1 ;
1528
1528
struct php_sqlite_result * res ;
1529
1529
@@ -1697,7 +1697,7 @@ PHP_FUNCTION(sqlite_seek)
1697
1697
{
1698
1698
zval * zres ;
1699
1699
struct php_sqlite_result * res ;
1700
- int row ;
1700
+ long row ;
1701
1701
1702
1702
if (FAILURE == zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "rl" , & zres , & row )) {
1703
1703
return ;
0 commit comments