note 5923 deleted from mysql_pconnect by ronabop

From: Date: Sat, 12 Aug 2000 22:53:33 +0000
Subject: note 5923 deleted from mysql_pconnect by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1750@lists.php.net to get a copy of this message
If I use LOCK TABLES, and then my PHP script exits without UNLOCKing (for example, it hits its time limit, or there is a coding error and the UNLOCK is missed), then won't mysql_pconnect() be a problem? If none of the PHP scripts handled by the current apache thread (after the offending one which forgets to unlock) issues a LOCK or an UNLOCK, then the tables will remain locked until that apache thread exits? Deadlock??? Is there anyway around this besides using mysql_connect() instead, and hoping that the overhead of making connections to the SQL server doesn't eat your lunch?

« previous php.notes (#1750) next »