Completed PDO_MySQL+SSL documentation, as per PHP Bug #61158

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323614 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2012-02-28 03:48:25 +00:00
parent 013194233d
commit 5640bc8790
2 changed files with 26 additions and 0 deletions

View file

@ -24,6 +24,13 @@ $ ./configure --with-pdo-mysql --with-mysql-sock=/var/mysql/mysql.sock
]]>
</screen>
</para>
<para>
SSL support is enabled using the appropriate <link linkend="pdo-mysql.constants">PDO_MySQL constants</link>,
which is equivalent to calling the <link xlink:href="&url.mysql.docs.ssl.set;">MySQL C API function mysql_ssl_set()</link>.
Also, SSL cannot be enabled with <classname>PDO::setAttribute</classname> because the connection
already exists. See also the MySQL documentation about <link xlink:href="&url.mysql.docs.ssl.using;">connecting to
MySQL with SSL</link>.
</para>
<table>
<title>&Changelog;</title>
@ -41,6 +48,18 @@ $ ./configure --with-pdo-mysql --with-mysql-sock=/var/mysql/mysql.sock
MySQL client libraries 4.1 and below are no longer supported.
</entry>
</row>
<row>
<entry>5.3.9</entry>
<entry>
Added SSL support with mysqlnd and OpenSSL.
</entry>
</row>
<row>
<entry>5.3.7</entry>
<entry>
Added SSL support with libmysql and OpenSSL.
</entry>
</row>
</tbody>
</tgroup>
</table>

View file

@ -160,6 +160,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
</term>
<listitem>
<para>
The file path to the SSL certificate authority.
</para>
<para>
&version.exists.asof; 5.3.7.
@ -174,6 +175,8 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
</term>
<listitem>
<para>
The file path to the directory that contains the trusted SSL
CA certificates, which are stored in PEM format.
</para>
<para>
&version.exists.asof; 5.3.7.
@ -188,6 +191,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
</term>
<listitem>
<para>
The file path to the SSL certificate.
</para>
<para>
&version.exists.asof; 5.3.7.
@ -202,6 +206,8 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
</term>
<listitem>
<para>
A list of one or more permissible ciphers to use for SSL encryption, in a format
understood by OpenSSL. For example: <literal>DHE-RSA-AES256-SHA:AES128-SHA</literal>
</para>
<para>
&version.exists.asof; 5.3.7.
@ -216,6 +222,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
</term>
<listitem>
<para>
The file path to the SSL key.
</para>
<para>
&version.exists.asof; 5.3.7.