<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Upgrade</title>
	<atom:link href="http://www.hyperborea.org/journal/2006/01/php-upgrade/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperborea.org/journal/2006/01/php-upgrade/</link>
	<description>Sci-fi, comics, humor, photos...it&#039;s all fair game.</description>
	<lastBuildDate>Wed, 23 May 2012 18:19:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>	<item>
		<title>By: Upgraded to PHP5 at The Musings of Chris Samuel</title>
		<link>http://www.hyperborea.org/journal/2006/01/php-upgrade/#comment-8738</link>
		<dc:creator>Upgraded to PHP5 at The Musings of Chris Samuel</dc:creator>
		<pubDate>Sat, 22 Apr 2006 07:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2006/01/16/php-upgrade/#comment-8738</guid>
		<description>[...] The only other issue was with wp-cache 2.0 which needed this little tweak by Kelson to fix the &#8220;odd blank screen bug&#8221; properly. [...]</description>
		<content:encoded><![CDATA[<p>[...] The only other issue was with wp-cache 2.0 which needed this little tweak by Kelson to fix the &#8220;odd blank screen bug&#8221; properly. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Finkler</title>
		<link>http://www.hyperborea.org/journal/2006/01/php-upgrade/#comment-8561</link>
		<dc:creator>Ed Finkler</dc:creator>
		<pubDate>Mon, 10 Apr 2006 22:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2006/01/16/php-upgrade/#comment-8561</guid>
		<description>Thanks for the follow-up Kelson.  This fixed me up as well.</description>
		<content:encoded><![CDATA[<p>Thanks for the follow-up Kelson.  This fixed me up as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelson</title>
		<link>http://www.hyperborea.org/journal/2006/01/php-upgrade/#comment-8360</link>
		<dc:creator>Kelson</dc:creator>
		<pubDate>Fri, 24 Feb 2006 19:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2006/01/16/php-upgrade/#comment-8360</guid>
		<description>I tried the suggestion in &lt;a href=&quot;http://mnm.uib.es/gallir/wp-cache-2/#comment-8306&quot; rel=&quot;nofollow&quot;&gt;comment 295&lt;/a&gt; on the WP-Cache post: in wp-cache-phase2.php, in the function wp_cache_ob_end(), change ob_end_clean() to ob_end_flush().

It fixed the blanking problem, but I ended up disabling it because it broke Content-Type headers on feeds.  Everything was getting sent as text/html, even when I told it not to cache the feed files.

I just took another look at it, and apparently the function WP-Cache uses to save the original HTTP headers (including Content-Type) doesn&#039;t always pick up data if you&#039;re using output buffering---which of course is integral to WP-Cache.  The suggested solution is to flush the buffer before calling apache_response_headers(), so I looked at the code.  ob_end_flush()  is called right after the block that saves the headers, and the only circumstance in which it tries to write any output is if there isn&#039;t already a Content-Type or Last-Modified header.  Well, PHP is going to add a default Content-Type in the worst case, and I&#039;m pretty sure WP generates Last-Modified everywhere.

So I moved that ob_end_flush() to just before the line with if(function_exists(&#039;apache_response_headers&#039;) ).  It seems to work so far.  It&#039;s caching, it&#039;s not pushing out blank pages, and it&#039;s sending the correct content type on feeds.</description>
		<content:encoded><![CDATA[<p>I tried the suggestion in <a href="http://mnm.uib.es/gallir/wp-cache-2/#comment-8306" rel="nofollow">comment 295</a> on the WP-Cache post: in wp-cache-phase2.php, in the function wp_cache_ob_end(), change ob_end_clean() to ob_end_flush().</p>
<p>It fixed the blanking problem, but I ended up disabling it because it broke Content-Type headers on feeds.  Everything was getting sent as text/html, even when I told it not to cache the feed files.</p>
<p>I just took another look at it, and apparently the function WP-Cache uses to save the original HTTP headers (including Content-Type) doesn&#8217;t always pick up data if you&#8217;re using output buffering&#8212;which of course is integral to WP-Cache.  The suggested solution is to flush the buffer before calling apache_response_headers(), so I looked at the code.  ob_end_flush()  is called right after the block that saves the headers, and the only circumstance in which it tries to write any output is if there isn&#8217;t already a Content-Type or Last-Modified header.  Well, PHP is going to add a default Content-Type in the worst case, and I&#8217;m pretty sure WP generates Last-Modified everywhere.</p>
<p>So I moved that ob_end_flush() to just before the line with if(function_exists(&#39;apache_response_headers&#39;) ).  It seems to work so far.  It&#8217;s caching, it&#8217;s not pushing out blank pages, and it&#8217;s sending the correct content type on feeds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.hyperborea.org/journal/2006/01/php-upgrade/#comment-8358</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 24 Feb 2006 19:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hyperborea.org/journal/archives/2006/01/16/php-upgrade/#comment-8358</guid>
		<description>I ran into the same problem with PHP5 and WP-Cache 2 today. Did you find a resolution?</description>
		<content:encoded><![CDATA[<p>I ran into the same problem with PHP5 and WP-Cache 2 today. Did you find a resolution?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

