cvs: php4 /ext/mysql php_mysql.c
| From: | Derick Rethans | Date: | Wed, 13 Nov 2002 08:54:35 +0000 |
| Subject: | cvs: php4 /ext/mysql php_mysql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16068@lists.php.net to get a copy of this message | ||
derick Wed Nov 13 03:54:35 2002 EDT
Modified files:
/php4/ext/mysql php_mysql.c
Log:
- Reset globals for each request
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.173 php4/ext/mysql/php_mysql.c:1.174
--- php4/ext/mysql/php_mysql.c:1.173 Tue Nov 12 03:11:23 2002
+++ php4/ext/mysql/php_mysql.c Wed Nov 13 03:54:34 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysql.c,v 1.173 2002/11/12 08:11:23 derick Exp $ */
+/* $Id: php_mysql.c,v 1.174 2002/11/13 08:54:34 derick Exp $ */
/* TODO:
*
@@ -435,7 +435,9 @@
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;
}
/* }}} */