<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Erik Bauffman</title>
	
	<link>http://blog.bauffman.be</link>
	<description>Life's a ditch, then you drown.</description>
	<lastBuildDate>Tue, 27 Jul 2010 09:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/bauffman" /><feedburner:info uri="bauffman" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Midas, hoofdpijn zonder zorgen</title>
		<link>http://blog.bauffman.be/2010/07/27/midas-hoofdpijn-zonder-zorgen/</link>
		<comments>http://blog.bauffman.be/2010/07/27/midas-hoofdpijn-zonder-zorgen/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 09:50:58 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[hoofdpijn]]></category>
		<category><![CDATA[midas]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=139</guid>
		<description><![CDATA[Aan die klootzakken die een camion uitlaten moesten lossen om 03u45 vannacht bij Midas (aan de achterkant van mijn appartement): Vraag de code van het alarm zodat je de hele buurt niet moet wakkermaken. Dank bij voorbaat!]]></description>
			<content:encoded><![CDATA[<p>Aan die klootzakken die een camion uitlaten moesten lossen om 03u45 vannacht bij Midas (aan de achterkant van mijn appartement):</p>
<blockquote><p>Vraag de code van het alarm zodat je de hele buurt niet moet wakkermaken. Dank bij voorbaat!</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/07/27/midas-hoofdpijn-zonder-zorgen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery focus on first visual input element</title>
		<link>http://blog.bauffman.be/2010/07/23/jquery-focus-on-first-visual-input-element/</link>
		<comments>http://blog.bauffman.be/2010/07/23/jquery-focus-on-first-visual-input-element/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 09:06:38 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[first]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[visible]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=137</guid>
		<description><![CDATA[I wanted the first visual form element, not having the noFocus class, get the focus when the page loads $(&#8216;form input:visible:not(.noFocus):first&#8217;).focus(); I love jquery!]]></description>
			<content:encoded><![CDATA[<p>I wanted the first visual form element, not having the noFocus class, get the focus when the page loads</p>
<blockquote><p>$(&#8216;form input:visible:not(.noFocus):first&#8217;).focus();</p></blockquote>
<p>I love jquery!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/07/23/jquery-focus-on-first-visual-input-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sennheiser in-ears</title>
		<link>http://blog.bauffman.be/2010/07/22/sennheiser-in-ears/</link>
		<comments>http://blog.bauffman.be/2010/07/22/sennheiser-in-ears/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 08:37:21 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=135</guid>
		<description><![CDATA[Sinds ik de Sennheiser cx400-II oordopjes heb, ben ik een gelukkige mens. Zelfs op standje 2 van mijn volume hoor ik niets meer van achtergrond geluid. De prijs van om en bij de 70 euro is natuurlijk wel andere koek.]]></description>
			<content:encoded><![CDATA[<p>Sinds ik de Sennheiser cx400-II oordopjes heb, ben ik een gelukkige mens. Zelfs op standje 2 van mijn volume hoor ik niets meer van achtergrond geluid. De prijs van om en bij de 70 euro is natuurlijk wel andere koek.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/07/22/sennheiser-in-ears/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spoon Library – Form example</title>
		<link>http://blog.bauffman.be/2010/05/24/spoon-library-form-example/</link>
		<comments>http://blog.bauffman.be/2010/05/24/spoon-library-form-example/#comments</comments>
		<pubDate>Mon, 24 May 2010 20:03:23 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[spoon]]></category>
		<category><![CDATA[spoon library]]></category>
		<category><![CDATA[SpoonForm]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=133</guid>
		<description><![CDATA[Check out the form example.]]></description>
			<content:encoded><![CDATA[<p>Check out the <a href="http://www.spoon-library.com/blog/detail/spoonform-example">form example</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/05/24/spoon-library-form-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spoon Library v1.2 released</title>
		<link>http://blog.bauffman.be/2010/05/20/spoon-library-v1-2-released/</link>
		<comments>http://blog.bauffman.be/2010/05/20/spoon-library-v1-2-released/#comments</comments>
		<pubDate>Thu, 20 May 2010 07:26:32 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[1.2.0]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[spoon library]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=131</guid>
		<description><![CDATA[A few days ago I released v1.2 for Spoon Library. Quite a few changes for this release.]]></description>
			<content:encoded><![CDATA[<p>A few days ago I released <a href="http://www.spoon-library.com/download">v1.2</a> for <a href="http://www.spoon-library.com">Spoon Library</a>. Quite a few <a title="Spoon Library version 1.2.0 changelog" href="http://www.spoon-library.com/blog/detail/spoon-library-v1-2-0-released">changes</a> for this release.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/05/20/spoon-library-v1-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting your timezone in mysql</title>
		<link>http://blog.bauffman.be/2010/02/08/setting-your-timezone-in-mysql/</link>
		<comments>http://blog.bauffman.be/2010/02/08/setting-your-timezone-in-mysql/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 12:23:34 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[0:00]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=129</guid>
		<description><![CDATA[If you want to set your timezone in mysql for your database connection, do this. SET time_zone = &#8216;+2:00&#8242;; Keep in mind that the number should be correct and can also have a minus sign, based on the timezone you want to set ofcourse. Do watch out for the UTC timezone, because mysql requires the [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to set your timezone in mysql for your database connection, do this.</p>
<blockquote><p>SET time_zone = &#8216;+2:00&#8242;;</p></blockquote>
<p>Keep in mind that the number should be correct and can also have a minus sign, based on the timezone you want to set ofcourse. Do watch out for the UTC timezone, because mysql requires the +.</p>
<blockquote><p>SET time_zone = &#8216;+0:00&#8242;;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/02/08/setting-your-timezone-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Only 1 person writing PHP shizzle.</title>
		<link>http://blog.bauffman.be/2010/01/24/only-1-person-writing-php-shizzle/</link>
		<comments>http://blog.bauffman.be/2010/01/24/only-1-person-writing-php-shizzle/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:58:55 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[bullshit]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=127</guid>
		<description><![CDATA[If I may believe my Google Reader, there&#8217;s only a handful of people that&#8217;s actually writing something decent about PHP. And as you might expect a shitload of websites tends to refer to that one persons&#8217; posts, clouding my RSS feed with a bunch of nonsense. I love sundays.]]></description>
			<content:encoded><![CDATA[<p>If I may believe my Google Reader, there&#8217;s only a handful of people that&#8217;s actually writing something decent about PHP. And as you might expect a shitload of websites tends to refer to that one persons&#8217; posts, clouding my RSS feed with a bunch of nonsense. I love sundays.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/01/24/only-1-person-writing-php-shizzle/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Type hinting for objects</title>
		<link>http://blog.bauffman.be/2010/01/20/type-hinting-for-objects/</link>
		<comments>http://blog.bauffman.be/2010/01/20/type-hinting-for-objects/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 15:42:27 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[code assist]]></category>
		<category><![CDATA[code completion]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[type hinting]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=123</guid>
		<description><![CDATA[In Spoon I fetch my form elements in this way that it&#8217;s impossible for the library to provide the correct type hinting. You can fix this yourself by doing: /* @var $txtEmail SpoonTextField */ $txtEmail = $this-&#62;frm-&#62;getField(&#8216;email&#8217;);]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.spoon-library.be">Spoon</a> I fetch my form elements in this way that it&#8217;s impossible for the library to provide the correct type hinting. You can fix this yourself by doing:</p>
<blockquote>
<p style="text-align: left;"><em>/* @var $txtEmail SpoonTextField */<br />
$txtEmail = $this-&gt;frm-&gt;getField(&#8216;email&#8217;);</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2010/01/20/type-hinting-for-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Programming with E_STRICT beware!</title>
		<link>http://blog.bauffman.be/2009/10/16/php-programming-with-e_strict-beware/</link>
		<comments>http://blog.bauffman.be/2009/10/16/php-programming-with-e_strict-beware/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 14:15:30 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[e_strict]]></category>
		<category><![CDATA[overloading]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[strict standards]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=119</guid>
		<description><![CDATA[I recently switched to programming PHP with error_reporting set to E_STRICT, since I want to know what&#8217;s going on. You have to watch out when extending classes and trying to overrule the parameters of the child method. An example: When executing you will get the following error &#8220;Strict Standards: Declaration of B::test() should be compatible [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched to programming PHP with error_reporting set to E_STRICT, since I want to know what&#8217;s going on. You have to watch out when extending classes and trying to overrule the parameters of the child method. An example:</p>
<p><img class="alignnone size-full wp-image-120" title="php-e-strict-errors" src="http://blog.bauffman.be/wp-content/uploads/2009/10/php-e-strict-errors.png" alt="php-e-strict-errors" width="397" height="363" /></p>
<p>When executing you will get the following error &#8220;<strong>Strict Standards: Declaration of B::test() should be compatible with that of A::test() in /path/to/file/test.php on line 18</strong>&#8221;</p>
<p>When I remove the parameter &#8216;value&#8217; from the method &#8216;test&#8217; in the class &#8216;B&#8217;, everything&#8217;s fine. Write that down.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2009/10/16/php-programming-with-e_strict-beware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Running PHPUnit tests in Zend Studio</title>
		<link>http://blog.bauffman.be/2009/10/14/running-phpunit-tests-in-zend-studio/</link>
		<comments>http://blog.bauffman.be/2009/10/14/running-phpunit-tests-in-zend-studio/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 19:05:46 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpunit]]></category>
		<category><![CDATA[unit testing]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=103</guid>
		<description><![CDATA[Why unit testing? There are quite a few reasons, but those I can think of right now are: It&#8217;s not hard, all it takes is some time to think things through Whenever I get a bugreport, I try to write it as a test to make sure this bug can never slip into my code [...]]]></description>
			<content:encoded><![CDATA[<p>Why unit testing? There are quite a few reasons, but those I can think of right now are:</p>
<ol>
<li>It&#8217;s not hard, all it takes is some time to think things through</li>
<li>Whenever I get a bugreport, I try to write it as a test to make sure this bug can never slip into my code unnoticed.</li>
<li>It&#8217;s a nice way to make sure that the things you already wrote, keep working after you&#8217;ve changed some of your code.</li>
</ol>
<p>Let&#8217;s take a look at the steps you need to do to get this working in Zend Studio (currently I&#8217;m using 6.1.2). First you need to add the PHPUNIT library location to the include of the project you want to write unit tests for. Right click your project, then click &#8216;properties&#8217;.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-project-properties.png"><img class="alignnone size-medium wp-image-105" title="zend-unit-testing-project-properties" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-project-properties-149x300.png" alt="zend-unit-testing-project-properties" width="149" height="300" /></a></p>
<p>Then click on the &#8216;include path&#8217; to the left. You will see an overview of the already added &#8216;include paths&#8217; to this project.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-include-path.png"><img class="alignnone size-medium wp-image-106" title="zend-unit-testing-include-path" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-include-path-300x193.png" alt="zend-unit-testing-include-path" width="300" height="193" /></a></p>
<p>Click the &#8216;add variable&#8217; option and select &#8216;PHPUNIT_HOME&#8217; and click &#8216;OK&#8217;.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-add-include-path.png"><img class="alignnone size-medium wp-image-107" title="zend-unit-testing-add-include-path" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-add-include-path-300x226.png" alt="zend-unit-testing-add-include-path" width="300" height="226" /></a></p>
<p>So far, so good. Now we have to create a PHPUNIT Test Case. Rightclick on the folder where you want to this new file to go and click &#8216;new&#8217; &gt; &#8216;PHPUnit Test Case&#8217;.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-add-test-case.png"><img class="alignnone size-medium wp-image-108" title="zend-unit-testing-add-test-case" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-add-test-case-240x300.png" alt="zend-unit-testing-add-test-case" width="240" height="300" /></a></p>
<p>I used the details below and did not select a specific element to test. If you do choose an element or class to test, all the default test methods will be added to the new file.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-add-test-case-details.png"><img class="alignnone size-medium wp-image-109" title="zend-unit-testing-add-test-case-details" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-add-test-case-details-300x245.png" alt="zend-unit-testing-add-test-case-details" width="300" height="245" /></a></p>
<p>When you&#8217;re done adding the test file, you&#8217;ll get a pretty messy generated file. I&#8217;ve changed bits of it and added a few &#8216;demo&#8217; functions as you can see below.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-code-example.png"><img class="alignnone size-medium wp-image-111" title="zend-unit-testing-code-example" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-code-example-300x276.png" alt="zend-unit-testing-code-example" width="300" height="276" /></a></p>
<p>I wrote 4 tests, using the 3 methods &#8216;returnTrue&#8217;, &#8216;returnFalse&#8217; and &#8216;greaterThan&#8217;. These methods are obviously pretty straightforward, but it gives you an idea of the way that you can test them.</p>
<p>You can run the test by rightclicking the editor area and choosing &#8216;run as&#8217; &gt; &#8216;PHPunit Test&#8217;.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-run-test.png"><img class="alignnone size-medium wp-image-112" title="zend-unit-testing-run-test" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-run-test-286x300.png" alt="zend-unit-testing-run-test" width="286" height="300" /></a></p>
<p>You should, considering your configuration has been set properly, get the next results.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-success-results.png"><img class="alignnone size-medium wp-image-113" title="zend-unit-testing-success-results" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-success-results-178x300.png" alt="zend-unit-testing-success-results" width="178" height="300" /></a></p>
<p>I broke the &#8216;greaterThan&#8217; function on purpose, to make sure that those tests would fail and then you get the following results.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-error-results.png"><img class="alignnone size-medium wp-image-114" title="zend-unit-testing-error-results" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-unit-testing-error-results-235x300.png" alt="zend-unit-testing-error-results" width="235" height="300" /></a></p>
<p>So far this little basic post about unit testing with PHPUnit from within Zend Studio. There are a lot more ways to test your code, but this brief introduction should get you started.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2009/10/14/running-phpunit-tests-in-zend-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Timezone php.ini setting</title>
		<link>http://blog.bauffman.be/2009/10/14/timezone-php-ini-setting/</link>
		<comments>http://blog.bauffman.be/2009/10/14/timezone-php-ini-setting/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 07:44:13 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=100</guid>
		<description><![CDATA[date.timezone = &#8220;Europe/Brussels&#8221; Make sure this setting is properly configured in your php.ini, since date/time functions may trigger notices otherwise.]]></description>
			<content:encoded><![CDATA[<p>date.timezone = &#8220;Europe/Brussels&#8221;</p>
<p>Make sure this setting is properly configured in your php.ini, since date/time functions may trigger notices otherwise.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2009/10/14/timezone-php-ini-setting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Debugger using MAMP Pro 1.8.2 PHP executable</title>
		<link>http://blog.bauffman.be/2009/10/13/zend-debugger-using-mamp-pro-1-8-2-php-executable/</link>
		<comments>http://blog.bauffman.be/2009/10/13/zend-debugger-using-mamp-pro-1-8-2-php-executable/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 17:50:23 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[mamp pro]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zend debugger]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=91</guid>
		<description><![CDATA[In Zend Studio (currently using 6.1.2) you can set the default PHP executable that you want to use to run PHP. I wanted to use the PHP executable of my MAMP Pro (1.8.2) to run my Unit tests from within Zend, since it has support for mbstring and lots of other sweetness. It took me [...]]]></description>
			<content:encoded><![CDATA[<p>In Zend Studio (currently using 6.1.2) you can set the default PHP executable that you want to use to run PHP. I wanted to use the PHP executable of my MAMP Pro (1.8.2) to run my Unit tests from within Zend, since it has support for mbstring and lots of other sweetness. It took me some time to figure out how to do this, but this is how I did it.</p>
<p>Open MAMP Pro and go to File &gt; Edit Template &gt; PHP5 php.ini</p>
<p><img class="alignnone size-full wp-image-92" title="mamp-pro-edit-template" src="http://blog.bauffman.be/wp-content/uploads/2009/10/mamp-pro-edit-template.png" alt="mamp-pro-edit-template" width="391" height="219" /></p>
<p>Then go all the way to the bottom of the opened file. There you will have to add the Zend Debugger extension as a php.ini directive. I used the ZendDebugger.so that&#8217;s included in the Zend Studio 6.1.2 installation. Make sure your path is correct.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/mamp-pro-edit-template-zend-extension.png"><img class="alignnone size-medium wp-image-93" title="mamp-pro-edit-template-zend-extension" src="http://blog.bauffman.be/wp-content/uploads/2009/10/mamp-pro-edit-template-zend-extension-300x185.png" alt="mamp-pro-edit-template-zend-extension" width="300" height="185" /></a></p>
<p>Now in Zend Studio you have to go to the overview of your PHP executables that looks like below and click &#8216;add&#8217;.</p>
<p><a href="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-studio-overview-php-executables.png"><img class="alignnone size-medium wp-image-94" title="zend-studio-overview-php-executables" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-studio-overview-php-executables-300x207.png" alt="zend-studio-overview-php-executables" width="300" height="207" /></a></p>
<p>I used the default details for a MAMP PRO 1.8.2 installation, as you can see below.<br />
Name: PHP 5.2.10 (CLI)<br />
Executable path: /Applications/MAMP/bin/php5/bin/php<br />
PHP ini file (optional): /Library/Application Support/appsolute/MAMP PRO/conf/php.ini</p>
<p><img class="alignnone size-full wp-image-95" title="zend-studio-add-php-executable" src="http://blog.bauffman.be/wp-content/uploads/2009/10/zend-studio-add-php-executable.png" alt="zend-studio-add-php-executable" width="639" height="326" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2009/10/13/zend-debugger-using-mamp-pro-1-8-2-php-executable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
