|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-14 23:22 UTC] luciandipeso at yahoo dot com
[2008-06-19 18:51 UTC] luciandipeso at yahoo dot com
[2008-07-14 19:39 UTC] uw@php.net
[2008-07-14 20:15 UTC] luciandipeso at yahoo dot com
[2008-07-14 20:57 UTC] jani@php.net
[2008-07-16 21:57 UTC] uw@php.net
[2008-07-16 22:18 UTC] luciandipeso at yahoo dot com
[2008-07-21 20:23 UTC] jani@php.net
[2008-07-29 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 21:00:01 2025 UTC |
Description: ------------ When I supply the MYSQLI_CLIENT_SSL flag to mysqli::real_connect, the script hangs until I either: get a 500 response from the web server (tested on a shared host running FreeBSD) or simply get a "Server unexpectedly dropped the connection" response (tested on my MacBook Pro running OS X 10.4.11). I am able to connect fine via command line. I looked in my Apache logs, and found no entries. Reproduce code: --------------- $db = new mysqli(); $db->init(); $db->ssl_set('/path/to/key.pem', '/path/to/cert.pem', '/path/to/ca.pem', NULL, NULL); $db->real_connect('1.2.3.4', 'login', 'pass', 'database', 3167, '', MYSQLI_CLIENT_SSL); $query = $db->query("SHOW STATUS"); while($row = $query->fetch_assoc()) { print_r($row); echo('<br /><br />'); } Expected result: ---------------- An SSL enabled connection to a remote MySQL database. Actual result: -------------- Either a 500 response or a "Server unexpectedly dropped the connection" response.