]> granicus.if.org Git - php/commitdiff
Fixed Bug #44094 (SEGFAULT when using mysql_connect())
authorFelipe Pena <felipe@php.net>
Tue, 12 Feb 2008 10:11:55 +0000 (10:11 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 12 Feb 2008 10:11:55 +0000 (10:11 +0000)
ext/mysql/php_mysql.c

index ad4e8ec624731c5ae0237e5371c0b9d17ddbebb9..9d5aedc699a8b5a22e746cce732c89ef3695ca4b 100644 (file)
@@ -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;