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

Bug #7618 can't save cache correctly
Submitted: 2006-05-13 06:54 UTC
From: neta-master at ywcafe dot net Assigned: fab
Status: Closed Package: Cache_Lite (version 1.7.0)
PHP Version: 4.4.2 OS: Linux
Roadmaps: (Not assigned)    

 [2006-05-13 06:54 UTC] neta-master at ywcafe dot net (watanabe)
Description: ------------ can't save cache correctly. test script below works with 1.6.0, but not work with 1.7.0 Test script: --------------- require_once('Cache/Lite.php'); $options = array( 'cacheDir' => '/tmp/', 'automaticSerialization' => TRUE ); $cacheobj = new Cache_Lite($options); $cacheid = "testid"; $tmpar = array(); for ($i=0; $i<2; $i++) { $ar[] = md5(mt_rand()); var_dump($cacheobj->save($ar,$cacheid)); var_dump($cacheobj->get($cacheid)); } Expected result: ---------------- bool(true) array(1) { [0]=> string(32) "ab22ddad55e328cc5419a7cceb4ffd0e" } bool(true) array(2) { [0]=> string(32) "ab22ddad55e328cc5419a7cceb4ffd0e" [1]=> string(32) "e1657d470a7e8b891d6a315a934a6836" } Actual result: -------------- bool(true) array(1) { [0]=> string(32) "ab22ddad55e328cc5419a7cceb4ffd0e" } bool(false) bool(false)


 [2006-05-13 22:12 UTC] fab at php dot net (Fabien MARTY)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.