summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-04 22:29:29 +0000
committerFelipe Pena <felipe@php.net>2008-03-04 22:29:29 +0000
commitc3b6ca3b8f1390d78c7974a2490ee36a24ef728f (patch)
tree26f2ecbe55c8937b79c4497ba36227eb585be61a /ext/mysql/php_mysql.c
parentb8a3bb32ef00ba627100a4ef67cb6e53451bd8f9 (diff)
downloadphp-git-c3b6ca3b8f1390d78c7974a2490ee36a24ef728f.tar.gz
MFB: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags)
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c2
1 files changed, 1 insertions, 1 deletions
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);