mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
changed mysqli_stmt_reset (returns now bool instead of void)
This commit is contained in:
parent
0b9d614988
commit
f61dbf06a1
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue