1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00

Fixed bug in my previous patch, forgot to reset connect error globals

on request startup.
This commit is contained in:
Jason Greene
2001-05-04 18:27:15 +00:00
parent a3c90853a0
commit bb131011a7

View File

@@ -322,6 +322,12 @@ PHP_RINIT_FUNCTION(mysql)
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;
}