diff options
Diffstat (limited to 'ext/mysqli/tests/bug51647.phpt')
-rw-r--r-- | ext/mysqli/tests/bug51647.phpt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ext/mysqli/tests/bug51647.phpt b/ext/mysqli/tests/bug51647.phpt index 349d6dbbb0..7385538fbb 100644 --- a/ext/mysqli/tests/bug51647.phpt +++ b/ext/mysqli/tests/bug51647.phpt @@ -41,11 +41,7 @@ $link->close(); if (!is_object($link = mysqli_init())) printf("[001] Cannot create link\n"); - $path_to_pems = !$IS_MYSQLND? "ext/mysqli/tests/" : ""; - if (!$link->ssl_set("{$path_to_pems}client-key.pem", "{$path_to_pems}client-cert.pem", "{$path_to_pems}cacert.pem","","")) - printf("[002] [%d] %s\n", $link->errno, $link->error); - - if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) { + if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT)) { printf("[003] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); } @@ -67,9 +63,9 @@ $link->close(); printf("[006] [%d] %s\n", $link->errno, $link->error); if (!strlen($row["Value"])) printf("[007] Empty cipher. No encrytion!"); + var_dump($row); } - var_dump($row); $link->close(); if (!is_object($link = mysqli_init())) @@ -97,10 +93,9 @@ $link->close(); printf("[012] [%d] %s\n", $link->errno, $link->error); if (!strlen($row["Value"])) printf("[013] Empty cipher. No encrytion!"); + var_dump($row); } - var_dump($row); - $link->close(); print "done!"; |