Re: PR #1723 - fix for crash in mysqli_connect
| From: | Andrey Hristov | Date: | Wed, 13 Jan 2016 13:46:39 +0000 |
| Subject: | Re: PR #1723 - fix for crash in mysqli_connect | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90601@lists.php.net to get a copy of this message | ||
Hi,
the patch looks ok. Sorry that I borked this.
Will push it in a short!
Thanks,
Andrey
On 13.01.2016 14:37, John Bafford wrote:
Hi all, Can someone take a look at this PR to fix a crash with mysqli_connect arising with a mysqlnd refactor in e81ecc80c in master from November: https://github.com/php/php-src/pull/1723 When attempting to mysqlI_connect(‘localhost’, ‘user’, ‘pass), the mysqlnd_conn_data::get_scheme introduced in e81ecc80c was no longer able to update the socket_or_pipe in mysqlnd_conn_data::connect with the socket filename in the event hostname == localhost. This causes a crash in mysqlnd_conn_data::connect when an attempt is made to duplicate the string to store it in conn->unix_socket.s. Thanks! -John