From: Georg Richter Date: Tue, 2 Jan 2007 05:49:05 +0000 (+0000) Subject: fixed parameters for unicode in mysqli_change_user X-Git-Tag: RELEASE_1_0_0RC1~436 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9fe766355bfba6ab36f9117d6311f6c05543875;p=php fixed parameters for unicode in mysqli_change_user --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 95df2fe90a..a13aad652c 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -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)