History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-187
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Fabien MARTY
Reporter: Alex Netkachov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Cache EXAMPLES.txt is out of accordance with Frontend\Output.php

Created: 03/Jul/06 01:12 AM   Updated: 05/Jul/07 02:43 PM
Component/s: Zend_Cache
Affects Version/s: 0.1.4
Fix Version/s: 0.1.5

Time Tracking:
Not Specified

File Attachments: 1. File test.php (0.6 kb)


Resolution Date: 03/Jul/06 12:13 PM


 Description  « Hide
EXAMPLES.txt says concerning "Output" frontend:

if ($cache->start($id)) {
// cache is not hit !

// Output you want to cache
for ($i=0;$i<10000;$i++) { echo($i); }

// store "captured" output into cache
$cache->end();
}

But Zend_Cache_Frontend_Output::start() method returns true when cache hit and false otherwise, so the function or example should be changed.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Fabien MARTY - 03/Jul/06 12:05 PM
test script

Fabien MARTY - 03/Jul/06 12:11 PM
you are right (I attached a test script)