From: Derick Rethans Date: Wed, 13 Nov 2002 08:54:34 +0000 (+0000) Subject: - Reset globals for each request X-Git-Tag: php-4.3.0RC1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=801c6989920047da1d510160dfec1f4c9287dde6;p=php - Reset globals for each request --- 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; } /* }}} */