mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
fixed #39 commands that need LOCK_SH fail as non-root
This commit is contained in:
parent
361c32aa4e
commit
0c9a167bea
@ -276,7 +276,7 @@ class PEAR_Registry extends PEAR
|
||||
}
|
||||
$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);
|
||||
}
|
||||
|
@ -70,6 +70,7 @@ PEAR Installer:
|
||||
* 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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user