iliaa           Mon Nov 11 11:54:26 2002 EDT

  Modified files:              
    /php4/ext/mysql     php_mysql.c 
  Log:
  Fixed compile warnings.
  
  
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.170 php4/ext/mysql/php_mysql.c:1.171
--- php4/ext/mysql/php_mysql.c:1.170    Mon Nov 11 07:54:06 2002
+++ php4/ext/mysql/php_mysql.c  Mon Nov 11 11:54:26 2002
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
  
-/* $Id: php_mysql.c,v 1.170 2002/11/11 12:54:06 georg Exp $ */
+/* $Id: php_mysql.c,v 1.171 2002/11/11 16:54:26 iliaa Exp $ */
 
 /* TODO:
  *
@@ -449,7 +449,7 @@
        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 @@
                        }
                        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);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to