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

index 3dcdb8f71eb3df54a8c3ef25547e87cad989e84b..8f01118ba31ab7043b17e0c14b1c977df2c745b3 100644 (file)
@@ -643,7 +643,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                user = MySG(default_user);
                passwd = MySG(default_password);
                
-               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&s&s&ll", &host_and_port, &host_len, UG(utf8_conv),
+               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&s&s&bl", &host_and_port, &host_len, UG(utf8_conv),
                                                                        &user, &user_len, UG(utf8_conv), &passwd, &passwd_len, UG(utf8_conv),
                                                                        &new_link, &client_flags)==FAILURE) {
                        return;