Home » Caching » Cache » Bug #6782
Error Handling In Container Problem
Details
| Submitted | 2006-02-14 17:52 UTC |
|---|---|
| From | seth at pricepages dot org |
| Assigned | dufuz |
| Status | Closed |
| Package | Cache |
| PHP Version | Irrelevant |
| OS | Mac |
| Roadmaps | (Not assigned) |
Comments
[2006-02-14 17:52 UTC] seth at pricepages dot org
Description:
------------
If an error is thrown in Container::fetch(), it is not
handled in Container::preload(). Because it is immediately
used in list(), a fatal error occurs.
I fixed this by changing (in Container::preload()):
list($this->expires, $this->cachedata, $this->userdata) =
$this->fetch($id, $group);
To:
if(PEAR::isError($ret = $this->fetch($id, $group))){
return $ret;
}
list($this->expires, $this->cachedata, $this->userdata) =
$ret;
[2007-06-18 21:12 UTC] seth at pricepages dot org
That sounds like the problem I was having. Sorry for not
replying sooner, I didn't get a email or anything that your
comment had been added.