]> granicus.if.org Git - php/commitdiff
fixed a bug in prepare/bind
authorGeorg Richter <georg@php.net>
Fri, 14 Feb 2003 16:31:22 +0000 (16:31 +0000)
committerGeorg Richter <georg@php.net>
Fri, 14 Feb 2003 16:31:22 +0000 (16:31 +0000)
ext/mysqli/mysqli.c

index 2c56d4fd606a4b1014716300150152007d7141eb..01f4ad19564278bd066865c64fdc3f49cb67b63e 100644 (file)
@@ -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) {