summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-11 16:54:26 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-11 16:54:26 +0000
commitaec6258a1777ee5052548122c53dbd00de544aea (patch)
tree65f0cdf86f37fc32cd8e0e22e79ad8e19426d8d0 /ext/mysql/php_mysql.c
parent2f06a4fa77c7e03a32883eb18b64f161c135ce38 (diff)
downloadphp-git-aec6258a1777ee5052548122c53dbd00de544aea.tar.gz
Fixed compile warnings.
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index fa34657216..034c4dc5f3 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -449,7 +449,7 @@ PHP_RSHUTDOWN_FUNCTION(mysql)
if (MySG(trace_mode)) {
if (MySG(result_allocated)){
char tmp[128];
- sprintf((char *)&tmp, "%d result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query()", MySG(result_allocated));
+ sprintf((char *)&tmp, "%lu result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query()", MySG(result_allocated));
php_error_docref("function.mysql-free-result" TSRMLS_CC, E_WARNING, tmp);
}
}
@@ -1248,7 +1248,7 @@ static void php_mysql_do_query_general(zval **query, zval **mysql_link, int link
}
else {
mysql_result = mysql_use_result(&mysql->conn);
- while (row = mysql_fetch_row(mysql_result)) {
+ while ((row = mysql_fetch_row(mysql_result))) {
if (!strcmp("ALL", row[1])) {
sprintf((char *)&tmp, "Your query requires a full tablescan (table %s, %s rows affected). Use EXPLAIN to optimize your query.", row[0], row[6]);
php_error_docref("http://www.mysql.com/doc" TSRMLS_CC, E_WARNING, tmp);