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

Bug #2749 cache->flush reports error when called second time
Submitted: 2004-11-13 16:51 UTC
From: rbell01824 at earthlink dot net Assigned: dufuz
Status: Closed Package: Cache
PHP Version: 4.3.8 OS: XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 49 - 27 = ?

 
 [2004-11-13 16:51 UTC] rbell01824 at earthlink dot net
Description: ------------ $cache->flush() reports error when called on a cache that has already been flushed. Should check that the directory exists before attempting to delete or swallow the error so it does not reach the user. Reproduce code: --------------- r_debug("// Open cache"); $cache = new Cache('file', array('cache_dir'=>RJB_CACHE_DIR)); r_debug("// Flush"); $cache->flush(); r_debug("// Flush"); $cache->flush(); // causes error message Expected result: ---------------- No error message Actual result: -------------- Unable to open directory error message

Comments

 [2004-12-14 08:28 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-12-14 09:16 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!