summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2004-07-13 16:12:28 (GMT)
committerGeorg Richter <georg@php.net>2004-07-13 16:12:28 (GMT)
commitf61dbf06a1a2619128c09d25a011343d24898e7b (patch)
tree4f211321a276fdd414b981700b10512495d7f99c
parent0b9d6149886cd8c5eff0d66423b83594853229b3 (diff)
downloadphp-f61dbf06a1a2619128c09d25a011343d24898e7b.tar.gz
changed mysqli_stmt_reset (returns now bool instead of void)
-rw-r--r--ext/mysqli/mysqli_api.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 6197328..7e633f8 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -1580,7 +1580,7 @@ PHP_FUNCTION(mysqli_stmt_param_count)
}
/* }}} */
-/* {{{ proto void mysqli_stmt_reset(object stmt)
+/* {{{ proto bool mysqli_stmt_reset(object stmt)
reset a prepared statement */
PHP_FUNCTION(mysqli_stmt_reset)
{
@@ -1593,9 +1593,10 @@ PHP_FUNCTION(mysqli_stmt_reset)
MYSQLI_FETCH_RESOURCE(stmt, MY_STMT *, &mysql_stmt, "mysqli_stmt");
- mysql_stmt_reset(stmt->stmt);
-
- return;
+ if (mysql_stmt_reset(stmt->stmt)) {
+ RETURN_FALSE;
+ }
+ RETURN_TRUE;
}
/* }}} */