[Phpfreechat-svn] SF.net SVN: phpfreechat: [588] trunk/src
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-15 13:19:06
|
Revision: 588 Author: kerphi Date: 2006-06-15 06:18:55 -0700 (Thu, 15 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=588&view=rev Log Message: ----------- Remove the corresponding cache lock file when the cache is destroyed. Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php trunk/testcase/container_generic.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-06-15 12:32:11 UTC (rev 587) +++ trunk/src/pfcglobalconfig.class.php 2006-06-15 13:18:55 UTC (rev 588) @@ -376,6 +376,10 @@ if (!file_exists($cachefile)) return false; $this->is_init = false; + // destroy the cache lock file + $cachefile_lock = $cachefile."_lock"; + if (file_exists($cachefile_lock)) @unlink($cachefile_lock); + // destroy the cache file return @unlink($cachefile); } Modified: trunk/testcase/container_generic.php =================================================================== --- trunk/testcase/container_generic.php 2006-06-15 12:32:11 UTC (rev 587) +++ trunk/testcase/container_generic.php 2006-06-15 13:18:55 UTC (rev 588) @@ -41,9 +41,8 @@ // here function tearDown() { - $ct =& $this->ct; - // remove the created files and directories - $this->ct->clear(); + $this->ct->clear(); + $this->c->destroyCache(); } function testCreateNick_Generic() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |