From: Georg Richter Date: Fri, 14 Feb 2003 16:31:22 +0000 (+0000) Subject: fixed a bug in prepare/bind X-Git-Tag: RELEASE_0_5~1020 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a7a41cf9f4eddcc7a9898b06defa2cb4f9b2edb;p=php fixed a bug in prepare/bind --- 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) {