]> granicus.if.org Git - php/commitdiff
Fixed compiler warning again, uint8_t is only available with mysqlnd. This is not...
authorKalle Sommer Nielsen <kalle@php.net>
Sat, 23 May 2009 02:58:15 +0000 (02:58 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Sat, 23 May 2009 02:58:15 +0000 (02:58 +0000)
ext/mysqli/mysqli_api.c

index ccfe4fcdf31aec14b922c0f1362b06648e07a4c4..5061814b9f66709110eda2a7412cfa3edf385329 100644 (file)
@@ -2081,7 +2081,11 @@ PHP_FUNCTION(mysqli_refresh)
                return;
        }
        MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link", MYSQLI_STATUS_INITIALIZED);
+#ifdef MYSQLI_USE_MYSQLND
+       RETURN_BOOL(!mysql_refresh(mysql->mysql, (uint8_t) options));
+#else
        RETURN_BOOL(!mysql_refresh(mysql->mysql, options));
+#endif
 }
 /* }}} */