note 130384 added to mysqli.real-connect

From: Date: Sun, 22 Jun 2025 23:41:36 +0000
Subject: note 130384 added to mysqli.real-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-222237@lists.php.net to get a copy of this message
Despite native driver (mysqlnd 8.3.20) and MySQL >5.6, the flag MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT will cause connection to be rejected as "not secure", if server is set to require SSL connection (--require-secure-transport=ON). It appears that MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT is seemingly accepted, but will not actually initiate a secure connection. Similarly, if one tries to turn off certificate validation by setting options: $mysqli->options(MYSQLI_OPT_SSL_VERIFY_SERVER_CERT, 0) then this will return "false", indicating that the option setting was not successful. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 2600:4040:a518:5200:ec72:e553:aece:fdba) ---- Manual Page -- https://php.net/manual/en/mysqli.real-connect.php Edit -- https://main.php.net/note/edit/130384 Del: integrated -- https://main.php.net/note/delete/130384/integrated Del: useless -- https://main.php.net/note/delete/130384/useless Del: bad code -- https://main.php.net/note/delete/130384/bad+code Del: spam -- https://main.php.net/note/delete/130384/spam Del: non-english -- https://main.php.net/note/delete/130384/non-english Del: in docs -- https://main.php.net/note/delete/130384/in+docs Del: other reasons-- https://main.php.net/note/delete/130384 Reject -- https://main.php.net/note/reject/130384 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222237) next »