From: Felipe Pena Date: Tue, 4 Mar 2008 22:31:38 +0000 (+0000) Subject: MFB: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags) X-Git-Tag: RELEASE_2_0_0a1~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3ca51413cce10d8b4b6ec54334aaf8b6a1c2829;p=php MFB: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags) --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index ad26fdd972..d1f334c7b1 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -600,7 +600,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) int user_len, passwd_len, host_len; char *hashed_details=NULL; int hashed_details_length, port = MYSQL_PORT; - int client_flags = 0; + long client_flags = 0; php_mysql_conn *mysql=NULL; #if MYSQL_VERSION_ID <= 32230 void (*handler) (int);