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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user