Looking at may trace, here is what is happening internally in the API:
From: Julien Chavanton
Sent: September 25, 2006 9:42 AM
Subject: Aparent connection lost resulting in crash
When there is a problem with a connection the next time we call a
function like mysql_query() or mysql_ping() it does report an error
witch is fine but if I call
2 function in a row before reseting the connection the function crash
instead of reporting an error, I can live with that.
Now when a connection is left idle for some time and is probably
disconnect if I call mysql_query() it does crash instead of reporting an
How can I validate this properly or handle it correctly?