diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-04-22 15:19:08 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-04-22 15:19:08 +0000 |
commit | 0369b693b4efe3c273f47e561ada742218e80425 (patch) | |
tree | 2308e45d47df35322e9a5fd870fb0f9c4405272d /ext/mysql/php_mysql.c | |
parent | 6a8b3db8bc1e5edd4f0afdf9e01a828cdc979bff (diff) | |
download | php-git-0369b693b4efe3c273f47e561ada742218e80425.tar.gz |
Fixed bug #41159 (mysql_pconnect() hash does not account for connect
flags).
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index b0e54ad47b..9065135e44 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -618,7 +618,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) } } - hashed_details_length = spprintf(&hashed_details, 0, "mysql_%s_%s_%s", SAFE_STRING(host_and_port), SAFE_STRING(user), SAFE_STRING(passwd)); + hashed_details_length = spprintf(&hashed_details, 0, "mysql_%s_%s_%s_%d", SAFE_STRING(host_and_port), SAFE_STRING(user), SAFE_STRING(passwd), client_flags); } /* We cannot use mysql_port anymore in windows, need to use |