diff options
author | Stig Bakken <ssb@php.net> | 2002-04-24 00:48:06 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2002-04-24 00:48:06 +0000 |
commit | 3460eedfca99e819e06e25ef9ec3b2c42f96e48c (patch) | |
tree | 16fc374e5b6755010f6c8742459c9c44c61b2465 | |
parent | dc49f3cd0a72f734e22eeee0826772ebd708f571 (diff) | |
download | php-git-3460eedfca99e819e06e25ef9ec3b2c42f96e48c.tar.gz |
* add "_lastmodified" timestamp to registry files (don't trust filemtime)
-rw-r--r-- | pear/PEAR/Registry.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index 3d84120bcc..30f31ce6f9 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -360,6 +360,7 @@ class PEAR_Registry extends PEAR $this->_unlock(); return false; } + $info['_lastmodified'] = time(); fwrite($fp, serialize($info)); $this->_closePackageFile($fp); $this->_unlock(); @@ -401,6 +402,7 @@ class PEAR_Registry extends PEAR $this->_unlock(); return false; } + $info['_lastmodified'] = time(); if ($merge) { fwrite($fp, serialize(array_merge($oldinfo, $info))); } else { |