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

diff --git a/NEWS b/NEWS
index a2590d771872b25e1f039c8a516c636970ab3675..450c9f5a007d7830997f893ac1e9fb1edb63dbbf 100644 (file)
--- 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)
index f6bd8e43439dba41b3237c1991f36dcda06aa4a7..68082b2131457635c34fa500607115fe3e4650e0 100644 (file)
@@ -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);