Bug #53227 [Opn]: PHP Warning: mysql_pconnect(): MySQL server has gone away
Edit report at http://bugs.php.net/bug.php?id=53227&edit=1
ID: 53227
Updated by: kalle@php.net
Reported by: tyra3l at gmail dot com
Summary: PHP Warning: mysql_pconnect(): MySQL server has
gone away
Status: Open
Type: Bug
Package: MySQL related
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
Afair, we already have some checking code in the common connector
function for ext/mysql to check for "server has gone away" when
attempting to re-use a persistent connection. But it is hard to
reproduce if the result isn't consistent.
I tried to reproduce it a few times, but without luck. Any specific
MySQL Server versions, or other data that could provide useful?
Previous Comments:
------------------------------------------------------------------------
[2010-12-20 14:34:06] tyra3l at gmail dot com
mysqlnd
Tyrael
------------------------------------------------------------------------
[2010-12-20 14:22:52] andrey@php.net
do you use libmysql or mysqlnd?
------------------------------------------------------------------------
[2010-11-02 12:13:04] tyra3l at gmail dot com
Description:
------------
On of my co-worker experienced, that some of the mysql_pconnect calls
are
returning this error.
The exact same symptoms are described in the manual:
http://php.net/manual/en/function.mysql-pconnect.php#99380
the code which produce this was working fine before migrating to 5.3
Test script:
---------------
<?php
mysql_pconnect();
Expected result:
----------------
successful connection every time
Actual result:
--------------
sometimes we get the PHP warning, and we had to retry the connection
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53227&edit=1
Thread (8 messages)