I m working with an old but very complex piece of php code, which relies on direct mysql access via mysql_* functions. The code uses mysql_ping extensively, but it assumes each mysql_ping call will also reconnect in case it finds out connection timed out. The problem is that since MySQL 5.0.something mysql_ping doesn t reconnect automatically. In the doc s I found I need to call mysql_options with appropriate flag, but there s no such function as mysql_options. Instead, there s mysqli_options but we literally can t switch to mysqli_* now, it d take way too much time. Downgrading MySQL is also not considered as a solution. Any ideas how to fix that?
Thanks