mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Revert all MySQL auth related changes
Per bug #76651 these changes do not appear to work correctly in some cases. As no immediate fix seems to be forthcoming, I'm reverting these changes. Revert "Fixed invalid free introduced byd6e81f0bfd
(avoid keeping "invalid" pointer)" This reverts commit11507c0e1b
. Revert "Fix mysqlnd build without openssl" This reverts commit6c9db02ff7
. Revert "Fix VC compilation as variable size array is not supported" This reverts commitf96df64cb2
. Revert "Fix MySQL 8 auth" This reverts commitd6e81f0bfd
.
This commit is contained in:
parent
f1f39d7ed7
commit
03740ef7df
7 changed files with 29 additions and 425 deletions
|
@ -678,13 +678,9 @@ MYSQLND_METHOD(mysqlnd_conn_data, connect)(MYSQLND_CONN_DATA * conn,
|
|||
|
||||
{
|
||||
const MYSQLND_CSTRING scheme = { transport.s, transport.l };
|
||||
/* This will be overwritten below with a copy, but we can use it during authentication */
|
||||
conn->unix_socket.s = (char *)socket_or_pipe.s;
|
||||
if (FAIL == conn->m->connect_handshake(conn, &scheme, &username, &password, &database, mysql_flags)) {
|
||||
conn->unix_socket.s = NULL;
|
||||
goto err;
|
||||
}
|
||||
conn->unix_socket.s = NULL;
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue