diff options
author | SVN Migration <svn@php.net> | 2004-07-15 19:41:25 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-07-15 19:41:25 +0000 |
commit | 5c83dc9adee4691690822a05b290d7d9a9c04c31 (patch) | |
tree | 4c22c901829598dfe7fa599c41c0b2cb569f4afa /ext/mysqli | |
parent | 8091552925399dc7dbe4d5c47e1cc53f900bc670 (diff) | |
download | php-git-php-5.0.0RC4.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_0_0RC4'.php-5.0.0RC4
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/mysqli_api.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 231d231109..6197328d7d 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -1241,7 +1241,7 @@ PHP_FUNCTION(mysqli_prepare) stmt = (MY_STMT *)ecalloc(1,sizeof(MY_STMT)); - if ((stmt->stmt = mysql_stmt_init(mysql->mysql))) { + if ((stmt->stmt = mysql_stmt_init(mysql->mysql))) { if (mysql_stmt_prepare(stmt->stmt, query, query_len)) { mysql_stmt_close(stmt->stmt); stmt->stmt = NULL; @@ -1580,7 +1580,7 @@ PHP_FUNCTION(mysqli_stmt_param_count) } /* }}} */ -/* {{{ proto bool mysqli_stmt_reset(object stmt) +/* {{{ proto void mysqli_stmt_reset(object stmt) reset a prepared statement */ PHP_FUNCTION(mysqli_stmt_reset) { @@ -1593,10 +1593,9 @@ PHP_FUNCTION(mysqli_stmt_reset) MYSQLI_FETCH_RESOURCE(stmt, MY_STMT *, &mysql_stmt, "mysqli_stmt"); - if (mysql_stmt_reset(stmt->stmt)) { - RETURN_FALSE; - } - RETURN_TRUE; + mysql_stmt_reset(stmt->stmt); + + return; } /* }}} */ @@ -1781,7 +1780,7 @@ PHP_FUNCTION(mysqli_stmt_error) } /* }}} */ -/* {{{ proto mixed mysqli_stmt_init(object link) +/* {{{ proto object mysqli_stmt_init(object link) Initialize statement object */ PHP_FUNCTION(mysqli_stmt_init) @@ -1809,7 +1808,7 @@ PHP_FUNCTION(mysqli_stmt_init) } /* }}} */ -/* {{{ proto bool mysqli_stmt_prepare(object stmt, string query) +/* {{{ proto bool mysqli_stmt_prepare(object link, string query) prepare server side statement with query */ PHP_FUNCTION(mysqli_stmt_prepare) |