<?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>#ekynoxe &#187; Zend</title>
	<atom:link href="http://blog.ekynoxe.com/category/zend/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ekynoxe.com</link>
	<description>development   /   design   /   photography</description>
	<lastBuildDate>Thu, 20 May 2010 10:28:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend and Xdebug</title>
		<link>http://blog.ekynoxe.com/2009/09/17/zend-and-xdebug/</link>
		<comments>http://blog.ekynoxe.com/2009/09/17/zend-and-xdebug/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 21:50:01 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Zend]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://blog.ekynoxe.com/?p=53</guid>
		<description><![CDATA[After having coded most of my sites all from scratch with some of my own libraries, I am getting into using Zend framework, PHPUnit, and Xdebug.
If the two first ones have been of little trouble to install, I can&#8217;t say the same for Xdebug.
At first I have followed all the common tutorials that you can [...]]]></description>
			<content:encoded><![CDATA[<p>After having coded most of my sites all from scratch with some of my own libraries, I am getting into using Zend framework, PHPUnit, and Xdebug.</p>
<p>If the two first ones have been of little trouble to install, I can&#8217;t say the same for Xdebug.</p>
<p>At first I have followed all the common tutorials that you can find around the web:</p>
<ul>
<li>downloading the pre-compiled xdebug.so for my PHP install</li>
<li>simply copying to the proper folder</li>
<li>modifying my php.ini configuration by adding the correct zend_extension parameter for [xdebug].</li>
</ul>
<p>Until here, nothing fancy, it seems to work for most. BUT, when every install how-to on the web says &#8220;that&#8217;s it you&#8217;re done&#8221;, nothing happened for me. Xdebug was not loaded, there was no error message and everything was still running fine.</p>
<p>That&#8217;s when things started to get complicated, given the amount of combination possible of wrong configuration parameters and pre-compiled available shared objects, <strong>all of which would fail silently if anything would go wrong</strong>.</p>
<p>I tried to change zend_extension to zend_extension_ts because I was running PHP 5.2.8, but this did not change anything, I tried to compile xdebug.so manually and use the compiled object with the several parameters combination I have already tested with the pre-compiled version&#8230; Nothing. not  single error or idicatio that could put me on the right way!</p>
<p>Then, I came across an old article on <a href="http://devzone.zend.com/article/2803">devzone.zend.com</a> that I have discarded at first for its age (December 2007&#8230;) but that I ended up reading thoroughly and the following lines flashed before me:</p>
<p><em>Please note that phpize and php-config must match the PHP version you are using, so do not just copy them to your system from some other PHP installation. When your development tools are in place, you can download and compile xdebug</em></p>
<p>The phpize command on my system was not pointing to the proper one, as I compiled my own AMP install on the Mac. Running the proper phpize (in /usr/local/php/bin/ for me), it gave kind of a weird result:</p>
<p class="code">PHP Api Version:         20041225<br />
Zend Module Api No:<br />
Zend Extension Api No:   </p>
<p>Yep! No Zend API version numbers at all. As phpise is a simple shell script that extracts the API numbers from the PHP and Zend configurations, I thought there was a problem simply with my PHP install, and not with xdebug at all.</p>
<p>As I was running 5.2.8, I upgraded to PHP 5.3, cleaned all xdebug.so files, cleaned my php.ini file and tried it all again!</p>
<p>The pre-compiled version <strong>DID NOT WORK</strong> either, but compiling it myself from source, this time phpize giving the right API numbers:</p>
<p class="code">PHP Api Version:         20090626<br />
Zend Module Api No:      20090626<br />
Zend Extension Api No:   220090626</p>
<p>And finally xdebug worked!<br />
So, a few things to remember:</p>
<ul>
<li>sort your PHP install properly first, with the commands pointing to the right places. That&#8217;s also valid for php-config that is required for the compilation of xdebug</li>
<li>trying the pre-compiled version might not work on your system, so compile your own, it&#8217;s simple enough and the article on zend.com(<a href="http://devzone.zend.com/article/2803">http://devzone.zend.com/article/2803</a>), albeit old, is still valid</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ekynoxe.com/2009/09/17/zend-and-xdebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setting-up Zend</title>
		<link>http://blog.ekynoxe.com/2009/09/07/setting-up-zend/</link>
		<comments>http://blog.ekynoxe.com/2009/09/07/setting-up-zend/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 14:54:38 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://blog.ekynoxe.com/?p=3</guid>
		<description><![CDATA[Installing the Zend framework on an old Power Mac G5 on Tiger, I ran into a common PHP library problem.
After copying the whole Zend package into my php include folder, trying to use the project creation script gave me the following Manifest error:
zf.sh create project quickstart
Fatal error: Uncaught exception &#8216;Zend_Tool_Framework_Manifest_Exception&#8217; with message &#8216;A provider provided [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the Zend framework on an old Power Mac G5 on Tiger, I ran into a common PHP library problem.</p>
<p>After copying the whole Zend package into my php include folder, trying to use the project creation script gave me the following Manifest error:</p>
<p class="code">zf.sh create project quickstart<br />
Fatal error: Uncaught exception &#8216;Zend_Tool_Framework_Manifest_Exception&#8217; with message &#8216;A provider provided by the Zend_Tool_Framework_Manifest_ManifestBadProvider does not implement Zend_Tool_Framework_Provider_Interface&#8217; in /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/Tool/Framework/Manifest/Repository.php:100<br />
Stack trace:<br />
#0 /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/Tool/Framework/Loader/Abstract.php(104): Zend_Tool_Framework_Manifest_Repository-&gt;addManifest(Object(Zend_Tool_Framework_Manifest_ManifestBadProvider))<br />
#1 /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/Tool/Framework/Client/Abstract.php(118): Zend_Tool_Framework_Loader_Abstract-&gt;load()<br />
#2 /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/Tool/Framework/Client/Abstract.php(209): Zend_Tool_Framework_Client_Abstract-&gt;initialize()<br />
#3 /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/Tool/Framework/Client/Console.php(96): Zend_Tool_Framework_Client_Abstract-&gt;dispatch()<br />
#4 /usr/local/lib/php/ZendFramework-1.9.2/bin/zf.php(214): Zend_Tool_ in /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/Tool/Framework/Manifest/Repository.php on line 100</p>
<p>It turned out that the Zend tool was finding the wrong provider in the unit tests directory. I&#8217;m still not sure about what happens, but removing the test folder from the include_path did the trick.</p>
<p>However, I did scratch my head a bit on the following:</p>
<p class="code">Fatal error: Cannot redeclare class Zend_OpenId_Provider in /usr/local/lib/php/ZendFramework-1.9.2/library/Zend/OpenId/Provider.php on line 44</p>
<p>After a bit of searching, I discovered two things:</p>
<ul>
<li>Don&#8217;t put the Zend framework package directory in any subdirectory of your document root or it will be picked up as well</li>
<li>Clean your server from any other Zend libraries before trying to use a new one! Seems obvious enough, but when you are appointed a machine with lots of &#8216;history&#8217; (let&#8217;s keep it that way), you can&#8217;t always do what you want&#8230;</li>
</ul>
<p>Zend has now been installed, but I am still not really happy about having to separate the whole framework directory (eg, removing the test directory) in order to have things working.<br />
Anyone has an update on this?</p>
<p><em>Edit &#8211;  Setting up the environment variable ZEND_TOOL_INCLUDE_PATH to the proper library on the server solves this as well. In particular, the first finding above is not valid anymore, but it doesn&#8217;t prevent you from doing a bit of house cleaning anyways ;)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ekynoxe.com/2009/09/07/setting-up-zend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
