cvs: php4 /ext/mysql php_mysql.c
| From: | Jason Greene | Date: | Fri, 04 May 2001 18:27:15 +0000 |
| Subject: | cvs: php4 /ext/mysql php_mysql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5529@lists.php.net to get a copy of this message | ||
jason Fri May 4 11:27:15 2001 EDT
Modified files:
/php4/ext/mysql php_mysql.c
Log:
Fixed bug in my previous patch, forgot to reset connect error globals
on request startup.
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.80 php4/ext/mysql/php_mysql.c:1.81
--- php4/ext/mysql/php_mysql.c:1.80 Thu May 3 18:14:26 2001
+++ php4/ext/mysql/php_mysql.c Fri May 4 11:27:15 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysql.c,v 1.80 2001/05/04 01:14:26 jason Exp $ */
+/* $Id: php_mysql.c,v 1.81 2001/05/04 18:27:15 jason Exp $ */
/* TODO:
@@ -322,6 +322,12 @@
MySG(default_link)=-1;
MySG(num_links) = MySG(num_persistent);
+ /* Reset connect error/errno on every request */
+ if (MySG(connect_error)!=NULL) {
+ efree(MySG(connect_error));
+ MySG(connect_error)=NULL;
+ }
+ MySG(connect_errno)=0;
return SUCCESS;
}