There is nothing I can do on the PHP side other than recommend that you move to SplendidCRM Professional.
I don't know if this is relevant. it's definitely not timely. but... I get a similiar error when i unplugged my network cable to see what the plug-in did when "unplugged" from the network and sugar (we have notebook users who may not be connected). One of my tasks on this project is to create a "prettier" message if anyone is interested. The error i got was;
Boolean Disconnect(Boolean) Line 826.Client found response content type of 'text/html',but expected 'text/xml'.The request failed with the error message:--Unable to select database: Access denied for user 'ODBC@localhost'(using password:NO)--.
The message suggests that SugarCRM is having a problem. The message looks like a typical MySQL access denied error and therefore would not be related to anything the SplendidCRM Plug-in is doing.