php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39699 MYSQL_CLIENT_SSL does not work in mysql_connect
Submitted: 2006-12-01 09:25 UTC Modified: 2006-12-04 08:31 UTC
From: jeffiel at 9star dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.0 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeffiel at 9star dot com
New email:
PHP Version: OS:

 

 [2006-12-01 09:25 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-01 11:25 UTC] tony2001@php.net
Assigned to the maintainer.
 [2006-12-01 15:41 UTC] iliaa@php.net
Is your client & server compiled with SSL support?
 [2006-12-01 22:00 UTC] 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-04 08:31 UTC] jeffiel at 9star dot com
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 07:01:33 2025 UTC