From: Kalle Sommer Nielsen Date: Sat, 23 May 2009 02:58:15 +0000 (+0000) Subject: Fixed compiler warning again, uint8_t is only available with mysqlnd. This is not... X-Git-Tag: php-5.3.0RC3~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e26710bfc4ad907d7ef74ecd5822fc0352d35838;p=php Fixed compiler warning again, uint8_t is only available with mysqlnd. This is not affecting HEAD --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index ccfe4fcdf3..5061814b9f 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -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 } /* }}} */