Privet,
Antony Dovgal wrote:
> On 04/15/2007 12:11 AM, Andrey Hristov wrote:
>>> http://php.net/mysqli_ping
>>> mysqli_ping, mysqli->ping() — Pings a server connection, or
>>> *tries to
>>> reconnect if the connection has gone down*
>>
>> Then the fix is wrong, it should set reconnect only for the mysql_ping
>> call, if reconnect is off.
> 
> Could you please be more verbose? What's wrong setting it always? The
> docs say it's off by default.

mysqli.reconnect ini setting is not respected, it's set to off, by
default. You set during connect reconnect to 1, which is not what is
wanted. mysql(i) is an interface on top of libmysql (so far in released
versions) and follows the rules of libmysql. The documentation should be
fixed that as of libmysql 5.0.3 mysqli_ping() won't reestablish the
connection if the ini variable mysqli.reconnect is off.


>>> As far as I understand, there is no way to fix it in versions between
>>> 5.0.3 and 5.0.13 because of MySQLI API breakage.
>>>
>>
>> It's just about setting mysql->reconnect in this cases. This versions
>> won't change anyway, they are released.
> 
> Right. We need to set it somehow, but MYSQL_OPT_RECONNECT is missing in
> these versions.
> If you know how to do it - let me know.

No need to patch, documentation has to be fixed.

Andrey

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to