Oracle 5.0 Reference Manual page 2743

Table of Contents

Advertisement

string capath,
string cipher);
public resource MysqlndUhConnection::stmtInit(
mysqlnd_connection connection);
public resource MysqlndUhConnection::storeResult(
mysqlnd_connection connection);
public bool MysqlndUhConnection::txCommit(
mysqlnd_connection connection);
public bool MysqlndUhConnection::txRollback(
mysqlnd_connection connection);
public resource MysqlndUhConnection::useResult(
mysqlnd_connection connection);
}
20.7.8.7.1.
MysqlndUhConnection::changeUser
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::changeUser
Changes the user of the specified mysqlnd database connection
Description
public bool MysqlndUhConnection::changeUser(
mysqlnd_connection connection,
string user,
string password,
string database,
bool silent,
int passwd_len);
Changes the user of the specified mysqlnd database connection
Parameters
connection
user
password
database
silent
passwd_len
Return Values
Returns
TRUE
Examples
Example 20.337.
<?php
class proxy extends MysqlndUhConnection {
/* Hook mysqlnd's connection::change_user call */
public function changeUser($res, $user, $passwd, $db, $silent, $passwd_len) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::changeUser($res, $user, $passwd, $db, $silent, $passwd_len);
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
The MySQL user name.
The MySQL password.
The MySQL database to change to.
Controls if mysqlnd is allowed to emit errors or not.
Length of the MySQL password.
on success. Otherwise, returns
MysqlndUhConnection::changeUser
FALSE
example
2723

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents