cvs: php-src /pear package-PEAR.xml /pear/PEAR Registry.php
| From: | Greg Beaver | Date: | Sun, 28 Sep 2003 05:07:27 +0000 |
| Subject: | cvs: php-src /pear package-PEAR.xml /pear/PEAR Registry.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13144@lists.php.net to get a copy of this message | ||
cellog Sun Sep 28 01:07:27 2003 EDT
Modified files:
/php-src/pear/PEAR Registry.php
/php-src/pear package-PEAR.xml
Log:
fixed #39 commands that need LOCK_SH fail as non-root
Index: php-src/pear/PEAR/Registry.php
diff -u php-src/pear/PEAR/Registry.php:1.47 php-src/pear/PEAR/Registry.php:1.48
--- php-src/pear/PEAR/Registry.php:1.47 Sun Aug 3 15:32:07 2003
+++ php-src/pear/PEAR/Registry.php Sun Sep 28 01:07:26 2003
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Registry.php,v 1.47 2003/08/03 19:32:07 cox Exp $
+// $Id: Registry.php,v 1.48 2003/09/28 05:07:26 cellog Exp $
/*
TODO:
@@ -276,7 +276,7 @@
}
$open_mode = 'w';
// XXX People reported problems with LOCK_SH and 'w'
- if ($mode === LOCK_SH) {
+ if ($mode === LOCK_SH || $mode === LOCK_UN) {
if (@!is_file($this->lockfile)) {
touch($this->lockfile);
}
Index: php-src/pear/package-PEAR.xml
diff -u php-src/pear/package-PEAR.xml:1.70 php-src/pear/package-PEAR.xml:1.71
--- php-src/pear/package-PEAR.xml:1.70 Mon Sep 15 16:32:40 2003
+++ php-src/pear/package-PEAR.xml Sun Sep 28 01:07:27 2003
@@ -70,6 +70,7 @@
* Fixed optional dependencies in Dependency.php
* Fix #25322 - bad md5sum should be fatal error
* Package uninstall now also removes empty directories
+* Fixed locking problems for reading commands (pear list, pear info)
OS_Guess Class: