summaryrefslogtreecommitdiff
path: root/ext/mysql
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-02-12 10:11:55 +0000
committerFelipe Pena <felipe@php.net>2008-02-12 10:11:55 +0000
commitce197075b00073479662b4936e1926e4205e3fe4 (patch)
treea8fff0b69822c92da74801d6654a20874dc1c281 /ext/mysql
parent82b31e01ae3c81e2d5d4c4d5674a14abf23db21c (diff)
downloadphp-git-ce197075b00073479662b4936e1926e4205e3fe4.tar.gz
Fixed Bug #44094 (SEGFAULT when using mysql_connect())
Diffstat (limited to 'ext/mysql')
-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 ad4e8ec624..9d5aedc699 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -643,7 +643,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
hashed_details_length = spprintf(&hashed_details, 0, "mysql__%s_", user);
client_flags = CLIENT_INTERACTIVE;
} else {
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!s!ll", &host_and_port, &host_len,
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!s!bl", &host_and_port, &host_len,
&user, &user_len, &passwd, &passwd_len,
&new_link, &client_flags)==FAILURE) {
return;