Re: cvs: pear /DB/DB mysqli.php
| From: | Adam Maccabee Trachtenberg | Date: | Thu, 29 Apr 2004 20:45:08 +0000 |
| Subject: | Re: cvs: pear /DB/DB mysqli.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-18983@lists.php.net to get a copy of this message | ||
On Thu, 29 Apr 2004, Daniel Convissor wrote:
> danielc Thu Apr 29 16:13:34 2004 EDT
>
> Modified files:
> /pear/DB/DB mysqli.php
> Log:
> Make connect functions match reality. Make myself author since initial file never could have
> worked.
Maybe I should have spent some time actually reading the driver. It
might have been faster for everyone. :)
> + mysqli_ssl_set(
> + $init,
> + empty($dsninfo['key']) ? null : $dsninfo['key'],
> + empty($dsninfo['cert']) ? null : $dsninfo['cert'],
> + empty($dsninfo['ca']) ? null : $dsninfo['ca'],
> + empty($dsninfo['capath']) ? null : $dsninfo['capath'],
> + empty($dsninfo['cipher']) ? null : $dsninfo['cipher']
> + );
FYI: See http://bugs.php.net/28100
> + if ($conn = @mysqli_real_connect($init,
> + $dsninfo['hostspec'],
> + $dsninfo['username'],
> + $dsninfo['password'],
> + $dsninfo['database'],
> + $dsninfo['port'],
> + $dsninfo['socket'],
> + MYSQLI_CLIENT_SSL))
FWIW, I believe the online documentation is incorrect here. If you
call mysqli_ssl_set() or (otherwise set SSL information), the MySQL
C-library will *automatically* set the CLIENT_SSL flag. (i.e. you can
pass this if you want, but it ain't necessary.)
See the note for CLIENT_SSL in the table on:
http://dev.mysql.com/doc/mysql/en/mysql_real_connect.html
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!