From 1a7a41cf9f4eddcc7a9898b06defa2cb4f9b2edb Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Fri, 14 Feb 2003 16:31:22 +0000 Subject: [PATCH] fixed a bug in prepare/bind --- ext/mysqli/mysqli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1