cvs: pearweb /include xmlrpc-cache.php

From: Date: Thu, 11 Jul 2002 20:01:01 +0000
Subject: cvs: pearweb /include xmlrpc-cache.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5054@lists.php.net to get a copy of this message
dickmann Thu Jul 11 16:01:01 2002 EDT Modified files: /pearweb/include xmlrpc-cache.php Log: another bugfix Index: pearweb/include/xmlrpc-cache.php diff -u pearweb/include/xmlrpc-cache.php:1.2 pearweb/include/xmlrpc-cache.php:1.3 --- pearweb/include/xmlrpc-cache.php:1.2 Sat Jul 6 10:12:40 2002 +++ pearweb/include/xmlrpc-cache.php Thu Jul 11 16:01:00 2002 @@ -34,7 +34,11 @@ $id = $this->cache->generateID(array($method, $args)); if ($maxAge != null) { - $time = filemtime($this->cache->container->getFilename($id, 'default')); + $filename = $this->cache->container->getFilename($id, 'default'); + if (!file_exists($filename)) { + return null; + }; + $time = filemtime($filename); if ($maxAge > $time) { return ""; };

« previous php.pear.cvs (#5054) next »