Oracle 5.0 Reference Manual page 2799

Table of Contents

Advertisement

Returns
TRUE
Examples
Example 20.380.
<?php
class proxy extends MysqlndUhConnection {
public function sslSet($conn, $key, $cert, $ca, $capath, $cipher) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::sslSet($conn, $key, $cert, $ca, $capath, $cipher);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("localhost", "root", "", "test");
$mysqli->ssl_set("key", "cert", "ca", "capath", "cipher");
?>
The above example will output:
proxy::sslSet(array (
0 => NULL,
1 => 'key',
2 => 'cert',
3 => 'ca',
4 => 'capath',
5 => 'cipher',
))
proxy::sslSet returns true
See Also
mysqlnd_uh_set_connection_proxy
mysqli_ssl_set
20.7.8.7.47.
MysqlndUhConnection::stmtInit
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::stmtInit
Initializes a statement and returns a resource for use with mysqli_statement::prepare
Description
public resource MysqlndUhConnection::stmtInit(
mysqlnd_connection connection);
Initializes a statement and returns a resource for use with mysqli_statement::prepare.
Parameters
connection
Return Values
Resource of type
it!). The documentation may also refer to such resources using the alias name
modify
mysqlnd_prepared_statement.
Mysqlnd user handler plugin (mysqlnd_uh)
on success. Otherwise, returns
MysqlndUhConnection::sslSet
Mysqlnd connection handle. Do not modify!
Mysqlnd Prepared Statement (internal only - you must not
FALSE
example
2779

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents