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

2011-08-24 Thread Laruence
Hi: hmm, but it really no sense for mysql_ping. the function used to identified a link whether valid, and if not valid, return a false is enough :) thanks 2011/8/24 Andrey Hristov : >  Hi, > in my opinion a warning in this case is better than no warning. Because this > shows a problem

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

2011-08-24 Thread 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_p

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

2011-08-24 Thread Laruence
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_pco