]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags)
authorFelipe Pena <felipe@php.net>
Tue, 4 Mar 2008 22:29:29 +0000 (22:29 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 4 Mar 2008 22:29:29 +0000 (22:29 +0000)
ext/mysql/php_mysql.c

index 2151e38ee104378b2d323510f52366ca39409966..c872fd38ef83a0237b7c83fec4de193f9da27853 100644 (file)
@@ -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);