From 3460eedfca99e819e06e25ef9ec3b2c42f96e48c Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Wed, 24 Apr 2002 00:48:06 +0000 Subject: [PATCH] * add "_lastmodified" timestamp to registry files (don't trust filemtime) --- pear/PEAR/Registry.php | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.50.1