]> granicus.if.org Git - php/commitdiff
fixed parameters for unicode in mysqli_change_user
authorGeorg Richter <georg@php.net>
Tue, 2 Jan 2007 05:49:05 +0000 (05:49 +0000)
committerGeorg Richter <georg@php.net>
Tue, 2 Jan 2007 05:49:05 +0000 (05:49 +0000)
ext/mysqli/mysqli_api.c

index 95df2fe90a36633f4d037ba76b3d2079a973d601..a13aad652c98ecb7d033f217cfbfd9f2b16e45f5 100644 (file)
@@ -403,7 +403,6 @@ PHP_FUNCTION(mysqli_stmt_bind_result)
 }
 /* }}} */
 
-
 /* {{{ proto bool mysqli_change_user(object link, string user, string password, string database) U
    Change logged-in user of the active connection */
 PHP_FUNCTION(mysqli_change_user)
@@ -414,7 +413,7 @@ PHP_FUNCTION(mysqli_change_user)
        int                             user_len, password_len, dbname_len;
        ulong           rc;
 
-       if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&&ss&", &mysql_link, mysqli_link_class_entry, 
+       if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&s&s&", &mysql_link, mysqli_link_class_entry, 
                                                                        &user, &user_len, UG(utf8_conv), &password, &password_len, UG(utf8_conv),
                                                                        &dbname, &dbname_len, UG(utf8_conv)) == FAILURE) {
                return;
@@ -432,7 +431,6 @@ PHP_FUNCTION(mysqli_change_user)
 }
 /* }}} */
 
-
 /* {{{ proto string mysqli_character_set_name(object link) U
    Returns the name of the character set used for this connection */
 PHP_FUNCTION(mysqli_character_set_name)