georg Tue Dec 30 14:19:14 2003 EDT Modified files: /php-src/ext/mysqli mysqli_api.c Log: fixed a bug in mysqli_num_rows (added support for longlong values) Index: php-src/ext/mysqli/mysqli_api.c diff -u php-src/ext/mysqli/mysqli_api.c:1.56 php-src/ext/mysqli/mysqli_api.c:1.57 --- php-src/ext/mysqli/mysqli_api.c:1.56 Sun Dec 28 17:26:59 2003 +++ php-src/ext/mysqli/mysqli_api.c Tue Dec 30 14:19:13 2003 @@ -15,7 +15,7 @@ | Author: Georg Richter <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mysqli_api.c,v 1.56 2003/12/28 22:26:59 georg Exp $ + $Id: mysqli_api.c,v 1.57 2003/12/30 19:19:13 georg Exp $ */ #ifdef HAVE_CONFIG_H @@ -776,7 +776,7 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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 @@ RETURN_LONG(0); } - rc = mysql_num_rows(result); - RETURN_LONG(rc); + MYSQLI_RETURN_LONG_LONG(mysql_num_rows(result)); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php