summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2003-02-14 16:31:22 +0000
committerGeorg Richter <georg@php.net>2003-02-14 16:31:22 +0000
commit1a7a41cf9f4eddcc7a9898b06defa2cb4f9b2edb (patch)
treee7643b55dc1bc12208a63ed36ef236361f1d364c /ext/mysqli/mysqli.c
parent92279e5e06076bee6d2274082674befa75f5fd24 (diff)
downloadphp-git-1a7a41cf9f4eddcc7a9898b06defa2cb4f9b2edb.tar.gz
fixed a bug in prepare/bind
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 2c56d4fd60..01f4ad1956 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -42,7 +42,7 @@ void php_clear_stmt_bind(STMT *stmt) {
int i;
- if (stmt->stmt)
+ if (stmt->stmt && stmt->stmt->mysql->host)
mysql_stmt_close(stmt->stmt);
if (stmt->var_cnt) {