summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2010-10-05 09:40:36 +0000
committerKalle Sommer Nielsen <kalle@php.net>2010-10-05 09:40:36 +0000
commitcc1eaba454145888b15be9537af5b9aea019af96 (patch)
tree424924ab959f2614239a6af5d183b5c74467f0ae /ext/mysqli/mysqli.c
parenta3f2895e6774430c8d085e7c1377675c7b5b35d3 (diff)
downloadphp-git-cc1eaba454145888b15be9537af5b9aea019af96.tar.gz
Fixed compiler warnings in mysqli
- mysqli.c: Fix unused variables, they are only used in non-mysqlnd mode - mysqli_api.c (PHP_5_3 only): Fix constness, add_property_string expects a char *, not a const char * - mysqli_prop.c: Cast to long, as its below the LONG_MAX and therefore safe - mysqli_result_iterator.c: Cast to ulong as the iterator member expects that rather than a my_longlong # In trunk only warnings regarding the zend_property_info # structure is present and PHP_5_3 is warning free now
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index eabfa2f869..c226bc2f5f 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -1087,12 +1087,12 @@ PHP_FUNCTION(mysqli_result_construct)
*/
void php_mysqli_fetch_into_hash_aux(zval *return_value, MYSQL_RES * result, long fetchtype TSRMLS_DC)
{
+#if !defined(MYSQLI_USE_MYSQLND)
MYSQL_ROW row;
unsigned int i;
MYSQL_FIELD *fields;
unsigned long *field_len;
-
-#if !defined(MYSQLI_USE_MYSQLND)
+
if (!(row = mysql_fetch_row(result))) {
RETURN_NULL();
}