summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 051ede3ca2..ad84ece14f 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -435,7 +435,9 @@ PHP_RINIT_FUNCTION(mysql)
MySG(num_links) = MySG(num_persistent);
/* Reset connect error/errno on every request */
MySG(connect_error) = NULL;
- MySG(connect_errno)=0;
+ MySG(connect_errno) =0;
+ MySG(trace_mode) = 0;
+ MySG(result_allocated) = 0;
return SUCCESS;
}
/* }}} */