[PHP-DEV] Bug #1090 Updated: Sybase persistent connections can't handle server restart From: Bug Database (php-dev <email protected>)
Date: 01/25/99

ID: 1090
Updated by: tommay
Reported By: ryan <email protected>
Status: Open
Bug Type: Sybase-ct (ctlib) related
Assigned To:
Comments:

I put in a pile of code for 3.0.6 to deal with this because our piece
of crap databases crap out all the time. The way it's intended to
work now is that sybase_pconnection() will not return a known bad
connection. However, the connection it will return is also not known
to still be good. If the database is restarted or the machine it's
running on is rebooted it will return a connection that will fail, but
that connection will be marked dead and will not be returned again.
Trying to guess whether the connection is known good is unreliable
because there's always a race where the connection may be good when it
is returned but the database may go down soon afterwards. You always
need error recovery code in your php script.

Full Bug description available at: http://ca.php.net/bugs.php3?id=1090

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>