From: Andrey Hristov Date: Fri, 14 Jan 2011 15:10:09 +0000 (+0000) Subject: pass data which is available X-Git-Tag: php-5.3.6RC1~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f144bb715398c8559d3989119cb1086d4168d282;p=php pass data which is available --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 6180c8a4ad..e62ee15e3e 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -848,7 +848,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) #ifndef MYSQL_USE_MYSQLND if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL) #else - if (mysqlnd_connect(mysql->conn, host, user, passwd, 0, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL) + if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL) #endif { /* Populate connect error globals so that the error functions can read them */