summaryrefslogtreecommitdiff
path: root/ext/mysqli/php_mysqli.h
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2004-03-16 21:43:25 +0000
committerGeorg Richter <georg@php.net>2004-03-16 21:43:25 +0000
commite3077eadef60213c9a1e1de425f5da7ed6366f60 (patch)
tree759f7e19a480fd5a5f5d9c92137038a78b52f954 /ext/mysqli/php_mysqli.h
parentf66c62cef8d3ba4ff3fdd26e63f63819618e207b (diff)
downloadphp-git-e3077eadef60213c9a1e1de425f5da7ed6366f60.tar.gz
fixed stmt->stmt->query which was removed in libmysql 4.1.2
added query buffer in internal stmt structure to copy string after prepare
Diffstat (limited to 'ext/mysqli/php_mysqli.h')
-rw-r--r--ext/mysqli/php_mysqli.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h
index a19c51eaa1..87d2851aec 100644
--- a/ext/mysqli/php_mysqli.h
+++ b/ext/mysqli/php_mysqli.h
@@ -47,6 +47,7 @@ typedef struct {
MYSQL_STMT *stmt;
BIND_BUFFER param;
BIND_BUFFER result;
+ char *query;
} STMT;
typedef struct {
@@ -349,6 +350,7 @@ PHP_FUNCTION(mysqli_stmt_errno);
PHP_FUNCTION(mysqli_stmt_error);
#ifndef HAVE_MYSQLI_OLDAPI
PHP_FUNCTION(mysqli_stmt_free_result);
+PHP_FUNCTION(mysqli_stmt_reset);
#endif
PHP_FUNCTION(mysqli_stmt_num_rows);
#if MYSQL_VERSION_ID >= 40101