diff options
author | Georg Richter <georg@php.net> | 2003-12-30 19:19:13 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2003-12-30 19:19:13 +0000 |
commit | 51fc89e49c37a5f55dc5658d0f8001d24ec17605 (patch) | |
tree | 12b7a38b9a0af497351d36be418a1f24952d56a6 /ext/mysqli | |
parent | 17f6ef51069bd2b3c34ae6cf2db85f1797a98561 (diff) | |
download | php-git-51fc89e49c37a5f55dc5658d0f8001d24ec17605.tar.gz |
fixed a bug in mysqli_num_rows (added support for longlong values)
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/mysqli_api.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index f142e4f651..3685e6eec7 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -776,7 +776,7 @@ PHP_FUNCTION(mysqli_fetch_fields) } /* }}} */ -/* {{{ proto int mysqli_fetch_field_direct (object result, int offset) +/* {{{ proto array mysqli_fetch_field_direct (object result, int offset) Fetch meta-data for a single field */ PHP_FUNCTION(mysqli_fetch_field_direct) { @@ -1130,7 +1130,7 @@ PHP_FUNCTION(mysqli_num_fields) } /* }}} */ -/* {{{ proto int mysqli_num_rows(object result) +/* {{{ proto mixed mysqli_num_rows(object result) Get number of rows in result */ PHP_FUNCTION(mysqli_num_rows) { @@ -1148,8 +1148,7 @@ PHP_FUNCTION(mysqli_num_rows) RETURN_LONG(0); } - rc = mysql_num_rows(result); - RETURN_LONG(rc); + MYSQLI_RETURN_LONG_LONG(mysql_num_rows(result)); } /* }}} */ |