summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-14 20:14:44 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-14 20:14:44 +0000
commit43eda85d5ad7caca8c801d2c3d571df6501e34d8 (patch)
treec95817595e563feaae4ae2487534f8958794c843
parente8fd6662ae27dcb42bf022787d803847a9f7aa3b (diff)
downloadphp-git-43eda85d5ad7caca8c801d2c3d571df6501e34d8.tar.gz
Fixed compile warnings.
-rw-r--r--ext/mysqli/mysqli.c3
-rw-r--r--ext/mysqli/mysqli_api.c13
2 files changed, 10 insertions, 6 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 43e7e466ea..a72494ff5a 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -340,7 +340,8 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
MYSQL_RES *result;
zval *mysql_result;
int fetchtype;
- int copyflag, i;
+ int copyflag;
+ unsigned int i;
MYSQL_FIELD *fields;
MYSQL_ROW row;
unsigned long *field_len;
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index bf6ac35ee8..fd86fb61bd 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -60,7 +60,7 @@ PHP_FUNCTION(mysqli_autocommit)
}
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link");
- RETURN_BOOL(mysql_autocommit(mysql, automode));
+ RETURN_BOOL((long) mysql_autocommit(mysql, automode));
}
/* }}} */
@@ -440,7 +440,7 @@ PHP_FUNCTION(mysqli_debug)
}
mysql_debug(debug);
- return;
+ RETURN_TRUE;
}
/* }}} */
@@ -455,7 +455,8 @@ PHP_FUNCTION(mysqli_disable_reads_from_master)
return;
}
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link");
- return (mysql_disable_reads_from_master(mysql));
+ mysql_disable_reads_from_master(mysql);
+ RETURN_TRUE;
}
/* }}} */
@@ -470,7 +471,8 @@ PHP_FUNCTION(mysqli_disable_rpl_parse)
return;
}
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link");
- return (mysql_disable_rpl_parse(mysql));
+ mysql_disable_rpl_parse(mysql);
+ RETURN_TRUE;
}
/* }}} */
@@ -505,7 +507,8 @@ PHP_FUNCTION(mysqli_enable_reads_from_master)
}
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link");
- return (mysql_enable_reads_from_master(mysql));
+ mysql_enable_reads_from_master(mysql);
+ RETURN_TRUE;
}
/* }}} */