Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14572 invoked from network); 13 Jan 2016 13:46:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2016 13:46:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@hristov.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@hristov.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hristov.com from 91.196.125.214 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 91.196.125.214 more.superhosting.bg Linux 2.6 Received: from [91.196.125.214] ([91.196.125.214:35059] helo=more.superhosting.bg) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/B0-10601-64556965 for ; Wed, 13 Jan 2016 08:46:47 -0500 Received: from [94.156.78.222] (port=41760 helo=[192.168.20.137]) by more.superhosting.bg with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aJLl5-0032hw-8N for internals@lists.php.net; Wed, 13 Jan 2016 15:46:43 +0200 To: internals@lists.php.net References: <62D88386-9A6B-42F6-821C-00279561D598@zort.net> Message-ID: <5696553F.40902@hristov.com> Date: Wed, 13 Jan 2016 14:46:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <62D88386-9A6B-42F6-821C-00279561D598@zort.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - more.superhosting.bg X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Get-Message-Sender-Via: more.superhosting.bg: authenticated_id: php@hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] PR #1723 - fix for crash in mysqli_connect From: php@hristov.com (Andrey Hristov) 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 > >