From c3b6ca3b8f1390d78c7974a2490ee36a24ef728f Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 4 Mar 2008 22:29:29 +0000 Subject: [PATCH] MFB: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags) --- ext/mysql/php_mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 2151e38ee1..c872fd38ef 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -604,7 +604,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); -- 2.40.0