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

Issue Type: Bug Created: 2009-03-27T07:25:19.000+0000 Last Updated: 2009-03-29T01:00:38.000+0000 Status: Resolved Fix version(s): - 1.7.8 (30/Mar/09)

Reporter: Jakob Ketterl (jakob.ketterl) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments: - patch.txt


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… i see that the code in question is still unchanged.


Posted by Jakob Ketterl (jakob.ketterl) on 2009-03-27T07:29:05.000+0000

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

Posted by Fabien MARTY (fab) on 2009-03-29T01:00:38.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.