#39699 [Bgs]: MYSQL_CLIENT_SSL does not work in mysql_connect
| From: | jeffiel at 9star dot com | Date: | Mon, 04 Dec 2006 08:31:45 +0000 |
| Subject: | #39699 [Bgs]: MYSQL_CLIENT_SSL does not work in mysql_connect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105844@lists.php.net to get a copy of this message | ||
ID: 39699
User updated by: jeffiel at 9star dot com
Reported By: jeffiel at 9star dot com
Status: Bogus
Bug Type: MySQL related
Operating System: Linux
PHP Version: 5.2.0
New Comment:
As I noted originally, it doesn't seem to be a dup of 21981.
1. I am compiling on linux against MySql 5.0x, not windows
on MySql 3x (which didn't support ssl)
2. MYSQL_CLIENT_SSL is defined, just not working
However, if the mysql_connect() function is not intended to
support SSL, then the resolution of 21981 would be correct
(remove it from documentation) however it has not occurred 3
+ years later.
Previous Comments:
------------------------------------------------------------------------
[2006-12-04 07:29:33] georg@php.net
see http://bugs.php.net/bug.php?id=21981
------------------------------------------------------------------------
[2006-12-01 22:00:41] jeffiel at 9star dot com
Yes. The mysql api doesn't provide any way to specify the
cert, key and ca file, so I'm not sure how this could possibly
work.
------------------------------------------------------------------------
[2006-12-01 15:41:24] iliaa@php.net
Is your client & server compiled with SSL support?
------------------------------------------------------------------------
[2006-12-01 11:25:02] tony2001@php.net
Assigned to the maintainer.
------------------------------------------------------------------------
[2006-12-01 09:25:58] jeffiel at 9star dot com
Description:
------------
MYSQL_CLIENT_SSL doesn't seem to be supported for
mysql_connect
Reproduce code:
---------------
mysql_connect("host:3306", "user", "pass", false, MYSQL_CLIENT_SSL);
Expected result:
----------------
connection to the database
Actual result:
--------------
hangs. Note, the server is probably waiting for the client to
present a cert, but no opportunity exists to specify the cert.
using strace, /etc/my.cnf is not read. Underlying mysql lib
is 5.0.22.
Note Bug #21981 is not a dup.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39699&edit=1