Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54847 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58533 invoked from network); 24 Aug 2011 08:26:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2011 08:26:43 -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.124.214 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 91.196.124.214 more.superhosting.bg Linux 2.6 Received: from [91.196.124.214] ([91.196.124.214:50127] helo=more.superhosting.bg) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/F1-48631-1C5B45E4 for ; Wed, 24 Aug 2011 04:26:42 -0400 Received: from androto.ddns.playtime.bg ([87.121.162.167] helo=[192.168.2.117]) by more.superhosting.bg with esmtpa (Exim 4.69) (envelope-from ) id 1Qw8nF-0002Hx-HU; Wed, 24 Aug 2011 11:26:37 +0300 Message-ID: <4E54B5B4.2040607@hristov.com> Date: Wed, 24 Aug 2011 10:26:28 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 ThunderBrowse/3.8 MIME-Version: 1.0 To: Laruence CC: PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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-Source: X-Source-Args: X-Source-Dir: Subject: Re: [BC]mysql_pconnect generate warning when link against mysqlnd From: php@hristov.com (Andrey Hristov) Hi, in my opinion a warning in this case is better than no warning. Because this shows a problem and even if display_warnings is off the warnings can be logged for further inspection. Best, Andrey On 08/24/2011 09:35 AM, Laruence wrote: > And the same warnings will be throw while call mysql_ping too. > > $plink = mysql_pconnect(****); > sleep(*); //a long time wait the mysql server timeout > > if (!mysql_ping($plink)) {} // warning genereated > > thanks > > 2011/8/24 Laruence: >> Hi: >> when linke mysql against mysqlnd, >> >> call to mysql_pconnect after previous one timeout, can trigger a warnning: >> PHP Warning: mysql_pconnect(): MySQL server has gone away >> >> while linked against libmysql will not generate this warning. so >> maybe this should be a BC ? >> >> thanks >> >> test script : >> > $plink = mysql_pconnect("127.0.0.1:3307", "root", ""); >> >> mysql_query("set wait_timeout=1", $plink); >> >> sleep(3); >> >> $plink = mysql_pconnect("127.0.0.1:3307", "root", ""); >> >> >> >> >> -- >> Laruence Xinchen Hui >> http://www.laruence.com/ >> > > >