diff options
author | Georg Richter <georg@php.net> | 2004-07-13 16:12:28 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2004-07-13 16:12:28 +0000 |
commit | f61dbf06a1a2619128c09d25a011343d24898e7b (patch) | |
tree | 4f211321a276fdd414b981700b10512495d7f99c | |
parent | 0b9d6149886cd8c5eff0d66423b83594853229b3 (diff) | |
download | php-git-f61dbf06a1a2619128c09d25a011343d24898e7b.tar.gz |
changed mysqli_stmt_reset (returns now bool instead of void)
-rw-r--r-- | ext/mysqli/mysqli_api.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 6197328d7d..7e633f84a4 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; } /* }}} */ |