printf("OK packet '%s'\n",
$ret = parent::simpleCommandHandleResponse($conn, $ok_packet, $silent, $command, $ignore_upsert_status);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysql = mysql_connect("localhost", "root", "");
mysql_query("SELECT 1 FROM DUAL", $mysql);
?>
The above example will output:
proxy::simpleCommandHandleResponse(array (
0 => NULL,
1 => 5,
2 => false,
3 => 27,
4 => true,
))
Command 'MYSQLND_UH_MYSQLND_COM_SET_OPTION'
OK packet 'MYSQLND_UH_MYSQLND_PROT_EOF_PACKET'
proxy::simpleCommandHandleResponse returns true
See Also
mysqlnd_uh_set_connection_proxy
20.7.8.7.46.
MysqlndUhConnection::sslSet
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
MysqlndUhConnection::sslSet
Used for establishing secure connections using SSL
Description
public bool MysqlndUhConnection::sslSet(
mysqlnd_connection connection,
string key,
string cert,
string ca,
string capath,
string cipher);
Used for establishing secure connections using SSL.
Parameters
connection
key
cert
ca
capath
cipher
Return Values
Mysqlnd user handler plugin (mysqlnd_uh)
ok_packet_2_string($ok_packet));
Mysqlnd connection handle. Do not modify!
The path name to the key file.
The path name to the certificate file.
The path name to the certificate authority file.
The pathname to a directory that contains trusted SSL CA
certificates in PEM format.
A list of allowable ciphers to use for SSL encryption.
2778