]> granicus.if.org Git - php/commitdiff
MFH: Fix mysqli pconnects to properly reset connection status by default
authorJohannes Schlüter <johannes@php.net>
Tue, 27 Jan 2009 15:35:34 +0000 (15:35 +0000)
committerJohannes Schlüter <johannes@php.net>
Tue, 27 Jan 2009 15:35:34 +0000 (15:35 +0000)
ext/mysqli/mysqli_nonapi.c

index 3d72a0e74560da01f4c112286af33c84f4da687c..95ddb9e6dfdb0eeeb364a1c2d16b87d3133b836b 100644 (file)
@@ -177,9 +177,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)) {