|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-25 13:09 UTC] fjanisze@php.net
-Status: Open
+Status: Feedback
[2017-04-25 13:09 UTC] fjanisze@php.net
[2017-05-07 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
Description: ------------ Maybe this is a bug in MySQLnd and not MySQLi, so feel free to change the affected package. With libmysql this is working as expected. Test script: --------------- <?php error_reporting(E_ALL); $con1 = mysqli_init(); mysqli_ssl_set($con1, "nonexistent", "nonexistent", "nonexistent", null, null ); if (!mysqli_real_connect($con1, 'localhost', 'foo', '')){ printf("Connect Error: %s\n", mysqli_connect_error()); exit; } printf("Connected.\n"); $res = mysqli_query($con1, "SHOW STATUS LIKE 'Ssl_cipher'"); printf("SSL-Connection: %d\n", (bool) end(mysqli_fetch_row($res))); ?> Expected result: ---------------- SSL error: Unable to get certificate from 'nonexistent' Warning: mysqli_real_connect(): (HY000/2026): SSL connection error in C:\Users\Public\Documents\htdocs\test.php on line 21 Connect Error: SSL connection error Actual result: -------------- Connected. SSL-Connection: 1