<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Microbits &#187; eaccelerator</title>
	<atom:link href="http://microbits.info/index.php/tag/eaccelerator/feed" rel="self" type="application/rss+xml" />
	<link>http://microbits.info</link>
	<description>Random thoughts about programming, gaming, and the world.</description>
	<lastBuildDate>Mon, 31 Oct 2011 04:43:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>More on eAccelerator</title>
		<link>http://microbits.info/index.php/2009/12/more-on-eaccelerator</link>
		<comments>http://microbits.info/index.php/2009/12/more-on-eaccelerator#comments</comments>
		<pubDate>Sun, 27 Dec 2009 22:27:04 +0000</pubDate>
		<dc:creator>recon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://microbits.info/?p=429</guid>
		<description><![CDATA[Now that I&#8217;m correctly loading the extension (zend_extension_ts), eAccelerator is running smoothly. I found something interesting in the event log yesterday: PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.9. Rebuild it for your PHP version (5.2.9-2) or download precompiled binaries. Now that error message makes perfect sense. The reason I [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;m correctly loading the extension (zend_extension_ts), eAccelerator is running smoothly.</p>
<p>I found something interesting in the event log yesterday:</p>
<pre class="brush: plain">
PHP Warning:  [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.9. Rebuild it for your PHP version (5.2.9-2) or download precompiled binaries.
</pre>
<p>Now that error message makes perfect sense. The reason I didn&#8217;t see it the first time around is that PHP logged two messages separately at the same time. If I was reading a flat file log, I would&#8217;ve noticed it immediately.</p>
]]></content:encoded>
			<wfw:commentRss>http://microbits.info/index.php/2009/12/more-on-eaccelerator/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thread safety and PHP</title>
		<link>http://microbits.info/index.php/2009/12/thread-safety-and-the-insanity-of-php-on-windows</link>
		<comments>http://microbits.info/index.php/2009/12/thread-safety-and-the-insanity-of-php-on-windows#comments</comments>
		<pubDate>Sun, 27 Dec 2009 04:06:30 +0000</pubDate>
		<dc:creator>recon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://microbits.info/?p=419</guid>
		<description><![CDATA[UPDATED After a few seg-faults, I realized that eAccelerator isn&#8217;t thread safe (I was running it under a thread safe server)&#8230; It is thread safe&#8230; I just wasn&#8217;t loading it in thread safe mode (see the manual for details). Whoops.]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>UPDATED</strong></span></p>
<p>After a few seg-faults, I realized that eAccelerator <span style="text-decoration: line-through;">isn&#8217;t thread safe (I was running it under a thread safe server)&#8230; </span><span style="color: #ff0000;"><strong>It is thread safe</strong></span>&#8230; I just wasn&#8217;t loading it in thread safe mode (<a href="http://eaccelerator.net/wiki/InstallFromSource" target="_blank">see the manual for details</a>). Whoops.</p>
]]></content:encoded>
			<wfw:commentRss>http://microbits.info/index.php/2009/12/thread-safety-and-the-insanity-of-php-on-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eAccelerator</title>
		<link>http://microbits.info/index.php/2009/12/eaccelerator</link>
		<comments>http://microbits.info/index.php/2009/12/eaccelerator#comments</comments>
		<pubDate>Sun, 27 Dec 2009 00:59:46 +0000</pubDate>
		<dc:creator>recon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://microbits.info/?p=411</guid>
		<description><![CDATA[After getting somewhat annoyed with the slowness of my blog, and having nothing better to do, I decided to setup eAccelerator. I&#8217;m pretty sure I tried setting it up a long time ago, but for some reason, didn&#8217;t finish. Following the path of logic, I went to the eAccelerator website in search of the appropriate [...]]]></description>
			<content:encoded><![CDATA[<p>After getting somewhat annoyed with the slowness of my blog, and having nothing better to do, I decided to setup eAccelerator. I&#8217;m pretty sure I tried setting it up a long time ago, but for some reason, didn&#8217;t finish.</p>
<p>Following the path of logic, I went to the <a href="http://eaccelerator.net/" target="_blank">eAccelerator website</a> in search of the appropriate files. Their Windows section directed me to <a href="http://www.sitebuddy.com/PHP/Accelerators/eAccelerator_windows_binaries_builds" target="_blank">SiteBuddy</a>, which had a nice collection of binaries for various PHP versions. After determining my PHP version (5.2.9-2), I tried the closest match (5.2.9), and was greeted by the following error in the Windows event log:</p>
<pre class="brush: text">Unable to start eAccelerator module in Unknown on line 0.</pre>
<p>My initial reaction to the error: what the ****&#8230; (<a href="http://microbits.info/?p=429" target="_blank">UPDATE: See this post for more details</a>) After a quick Google search, I found that PHP modules must be built for the EXACT PHP version you plan to use them on.</p>
<p>Since I have just about every Microsoft C++ compiler, I figured compiling a new eAccellerator module for my version of PHP would be simple. I downloaded the archived PHP files I needed (now I understand why they keep archives), switched to the release configuration, and pressed build.<br />
<span id="more-411"></span></p>
<pre class="brush: text">error C2466: cannot allocate an array of constant size 0</pre>
<p>My reaction to this was about the same as the other one. After half an hour, I tracked down and fixed the problem, which was a <a href="http://bugs.php.net/bug.php?id=39130" target="_blank">broken Windows build configuration (which the PHP developers KNEW about, and marked as &#8220;Wont Fix&#8221;)</a>.</p>
<p>The solution was to make the changes suggested by sailormax.</p>
<p>In the end, everything compiled, and you&#8217;re reading my post through eAccelerator. I noticed that blog page loads are 2 &#8211; 3 times faster. <img src='http://microbits.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://microbits.info/index.php/2009/12/eaccelerator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.697 seconds -->

