Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Bug #6782 Error Handling In Container Problem
Submitted: 2006-02-14 17:52 UTC
From: sprice Assigned: dufuz
Status: Closed Package: Cache (version 1.5.4)
PHP Version: Irrelevant OS: Mac
Roadmaps: (Not assigned)    
Subscription  


 [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;

Comments

 [2006-03-30 13:07 UTC] yunosh (Jan Schneider)
Is this the following error? Fatal error: Cannot use object of type Cache_Error as array in /usr/local/lib/php/Cache/Container.php on line 334
 [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.
 [2008-10-07 09:04 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2008-10-07 09:05 UTC] dufuz (Helgi Þormar Þorbjörnsson)
For some reason this bug was suspended when it was really fixed in CVS.