From: Felipe Pena Date: Tue, 4 Mar 2008 22:25:35 +0000 (+0000) Subject: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags) X-Git-Tag: php-5.2.6RC2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b47aea109483b55f1221a0e2f3b95c33d5e76c81;p=php Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags) --- diff --git a/NEWS b/NEWS index a2590d7718..450c9f5a00 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Mar 2008, PHP 5.2.6 +- Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags). + (Felipe) - Fixed bug #44325 (mssql_bind not correctly bind empty strings as parameter value). (Ilia) - Fixed bug #44306 (Better detection of MIPS processors on Windows). (Ilia) diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index f6bd8e4343..68082b2131 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -517,7 +517,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);