Issues

ZF-6139: Zend_Cache_Frontend_Page: config option "debug_header" breaks "memorize_headers"

Description

When using a Zend_Cache_Frontent_Page with the config_option "debug_header" set to true no cached headers will be replayed during a cache hit.

this is due to the fact that the code block that would normally replay stored headers will only get executed if no headers have been sent before. when one enables the debug_header option, an echo statement will be executed (in the code that echo statement is located exactly two lines above) in case of a cache hit, which will trigger a header "Content-Type: text/html" to be sent.

my suggestion is to simply bring the echo statement below the header replaying block, which should basically allow both features to co-exist.

i've tested this issue on ZF 1.6.1, however looking at http://framework.zend.com/svn/framework/… i see that the code in question is still unchanged.

Comments

i've created a simple path for this bug that fixes the problem for me.

thanks for the issue and for the patch, fixed in trunk and in 1.7 branch