Re: [BC]mysql_pconnect generate warning when link against mysqlnd

From: Date: Wed, 24 Aug 2011 07:35:55 +0000
Subject: Re: [BC]mysql_pconnect generate warning when link against mysqlnd
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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 <[email protected]>:
> 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 :
>      <?php
> $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/
>



-- 
Laruence  Xinchen Hui
http://www.laruence.com/


Thread (4 messages)

« previous php.internals (#54842) next »