summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-02-12 10:24:35 +0000
committerFelipe Pena <felipe@php.net>2008-02-12 10:24:35 +0000
commit13e939679b7e30154b65f039c8ecde06ae3b0349 (patch)
tree598c882e78dee785f6c56a8c640b67d8c1ba2189 /ext/mysql/php_mysql.c
parenta628bc8856c885d183404d527a73fb1660c92048 (diff)
downloadphp-git-13e939679b7e30154b65f039c8ecde06ae3b0349.tar.gz
MFB: Fixed Bug #44094 (SEGFAULT when using mysql_connect())
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 d0249e99bb..c9d0531401 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -556,7 +556,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;