cvs: pear-core(PEAR_1_3) /PEAR Registry.php
| From: | Greg Beaver | Date: | Tue, 26 Oct 2004 19:19:56 +0000 |
| Subject: | cvs: pear-core(PEAR_1_3) /PEAR Registry.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-25259@lists.php.net to get a copy of this message | ||
cellog Tue Oct 26 15:19:56 2004 EDT
Modified files: (Branch: PEAR_1_3)
/pear-core/PEAR Registry.php
Log:
better fix for #2625
http://cvs.php.net/diff.php/pear-core/PEAR/Registry.php?r1=1.50.4.2&r2=1.50.4.3&ty=u
Index: pear-core/PEAR/Registry.php
diff -u pear-core/PEAR/Registry.php:1.50.4.2 pear-core/PEAR/Registry.php:1.50.4.3
--- pear-core/PEAR/Registry.php:1.50.4.2 Tue Oct 26 15:01:51 2004
+++ pear-core/PEAR/Registry.php Tue Oct 26 15:19:56 2004
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Registry.php,v 1.50.4.2 2004/10/26 19:01:51 cellog Exp $
+// $Id: Registry.php,v 1.50.4.3 2004/10/26 19:19:56 cellog Exp $
/*
TODO:
@@ -314,7 +314,9 @@
function _unlock()
{
$ret = $this->_lock(LOCK_UN);
- @fclose($this->lock_fp);
+ if (is_resource($this->lock_fp)) {
+ fclose($this->lock_fp);
+ }
$this->lock_fp = null;
return $ret;
}