Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49176 invoked from network); 24 Aug 2011 07:36:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2011 07:36:01 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:43212] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/10-48631-FD9A45E4 for ; Wed, 24 Aug 2011 03:35:59 -0400 Received: by vwl1 with SMTP id 1so865610vwl.29 for ; Wed, 24 Aug 2011 00:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zsQaNZN6K/vHWDp/gKPDp/UJo++T/iVNLIgkQuHU1RY=; b=L2BwcrHl8PQzXyg2OIXsd4u5w04fUqhO5tkhVRvCrt1noWd70KoS6f/ipibZ2zhH9S nHt5wIUAjBcu40+QSlaBBDjxsYvDVjD1AicvTdEKmGmSNcNobgSOR20qQwyzZTwSnWdd S/wryppdjDxIA1sNJsfYSx7gP9yT1Rkxw5bAA= MIME-Version: 1.0 Received: by 10.220.37.194 with SMTP id y2mr649708vcd.262.1314171355455; Wed, 24 Aug 2011 00:35:55 -0700 (PDT) Sender: laruence@gmail.com Received: by 10.220.38.193 with HTTP; Wed, 24 Aug 2011 00:35:55 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Aug 2011 15:35:55 +0800 X-Google-Sender-Auth: 9PsiyqqgfZ_S-HDoJyIIQGk9hwg Message-ID: To: Andrey Hristov , andrey.hristov@oracle.com Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [BC]mysql_pconnect generate warning when link against mysqlnd From: laruence@php.net (Laruence) And the same warnings will be throw while call mysql_ping too. $plink =3D mysql_pconnect(****); sleep(*); //a long time wait the mysql server timeout if (!mysql_ping($plink)) {} // warning genereated thanks 2011/8/24 Laruence : > Hi: > =C2=A0 =C2=A0when linke mysql against mysqlnd, > > =C2=A0 =C2=A0call to mysql_pconnect after previous one timeout, =C2=A0can= trigger a warnning: > =C2=A0 =C2=A0 =C2=A0 PHP Warning: =C2=A0mysql_pconnect(): MySQL server ha= s gone away > > =C2=A0 =C2=A0while linked against libmysql will not generate this warning= . =C2=A0so > maybe this should be a BC ? > > =C2=A0 =C2=A0thanks > > =C2=A0 =C2=A0test script : > =C2=A0 =C2=A0 =C2=A0 $plink =3D mysql_pconnect("127.0.0.1:3307", "root", ""); > > mysql_query("set wait_timeout=3D1", $plink); > > sleep(3); > > $plink =3D mysql_pconnect("127.0.0.1:3307", "root", ""); > > > > > -- > Laruence =C2=A0Xinchen Hui > http://www.laruence.com/ > --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/