Skip to content

Commit

Permalink
changed mysqli_stmt_reset (returns now bool instead of void)
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Richter committed Jul 13, 2004
1 parent 0b9d614 commit f61dbf0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ext/mysqli/mysqli_api.c
Expand Up @@ -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)
{
Expand All @@ -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;
}
/* }}} */

Expand Down

0 comments on commit f61dbf0

Please sign in to comment.