Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

OutputCache: fixed storing of catched output #2877

Merged
merged 1 commit into from
Nov 15, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/Zend/Cache/Pattern/OutputCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function end()
throw new Exception\RuntimeException('Output cache not started');
}

$output = ob_end_flush();
$output = ob_get_flush();
if ($output === false) {
throw new Exception\RuntimeException('Output buffering not active');
}
Expand Down
1 change: 1 addition & 0 deletions tests/ZendTest/Cache/Pattern/OutputCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function testStartEndCacheMiss()
$data = ob_get_clean();

$this->assertEquals($output, $data);
$this->assertEquals($output, $this->_pattern->getOptions()->getStorage()->getItem($key));
}

public function testStartEndCacheHit()
Expand Down