mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fix mysqli pconnects to properly reset connection status by default
This commit is contained in:
parent
0e1277e317
commit
6e24169120
1 changed files with 1 additions and 2 deletions
|
@ -173,9 +173,8 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne
|
|||
mysqlnd_end_psession(mysql->mysql);
|
||||
#endif
|
||||
/* reset variables */
|
||||
/* todo: option for ping or change_user */
|
||||
|
||||
#if G0
|
||||
#ifndef MYSQLI_NO_CHANGE_USER_ON_PCONNECT
|
||||
if (!mysql_change_user(mysql->mysql, username, passwd, dbname)) {
|
||||
#else
|
||||
if (!mysql_ping(mysql->mysql)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue