php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17884 mysql_connect() does not support SSL
Submitted: 2002-06-20 15:43 UTC Modified: 2002-07-16 01:33 UTC
From: clay at killersoft dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.1 OS: Mac OS X
Private report: No CVE-ID: None
 [2002-06-20 15:43 UTC] clay at killersoft dot com
mysql_connect() does not seem to support connections to 
MySQL 4.x over MySQL's supported SSL connections.

I've compiled MySQL with the "--with-openssl" parameter, 
and then re-built PHP against that SSL-capable MySQL 
library. 

Connections to MySQL using SSL with the command line client 
succeed, which the same connection attempt via PHP fails.

Could PHP be altered to recognize the necessary "ssl-key", 
"ssl-cert", "ssl-ca", and "ssl-capath" MySQL [client] 
options? I believe that is what is required in order for 
these connections to succeed.

Perhaps these options can be added to MySQL's allowed 
parameters in php.ini?

Thanks,
Clay

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-16 01:33 UTC] georg@php.net
In the current cvs tree mysql_connect and mysql_pconnect 
now have an additional last parameter client_flags for 
connecting via SSL. Its described in the documentation.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 19 11:00:01 2026 UTC