<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 08 Jan 2009 03:15:20 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Abhinav Singh's Blog: PHP Extensions - How and Why?]]></title>
      <guid>http://www.phpdeveloper.org/news/11562</guid>
      <link>http://www.phpdeveloper.org/news/11562</link>
      <description><![CDATA[<p>
<i>Abhinav Singh</i> has <a href="http://abhinavsingh.com/blog/2008/12/php-extensions-how-and-why/">posted a guide</a> to PHP extensions - what they are and how to write a simple "hello world" one.
</p>
<blockquote>
Assuming you have read the <a href="http://abhinavsingh.com/blog/2008/11/how-does-php-echos-a-hello-world-behind-the-scene/">previous post</a>, lets discuss on how to build our first PHP extension: every PHP extension is built out of minimum of 2 files, a configuration file (config.m4) which tells us what files to build and what external libraries are needed and source File(s) which will contain the actual functionality.
</blockquote>
<p>
He builds up an example skeleton for an extension (the config.m4) and explains how the file will be phpized and configured. Next up is the php_sample.h header file where the needed modules are loaded and the sample.c file to define them. Last, but not least, comes the extension code itself that calls the printf function to output the "hello world" message.
</p>]]></description>
      <pubDate>Fri, 12 Dec 2008 11:17:23 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[John Coggeshall's Blog: Compiling extensions for Zend Core]]></title>
      <guid>http://www.phpdeveloper.org/news/9372</guid>
      <link>http://www.phpdeveloper.org/news/9372</link>
      <description><![CDATA[<p>
<i>John Coggeshall</i> has blogged about a method he's worked up for <a href="http://blog.coggeshall.org/archives/347-Compiling-extensions-for-Zend-Core.html">compiling extensions</a> into the <a href="http://www.zend.com/en/products/core/">Zend Core</a> software.
</p>
<blockquote>
While Core does ship with a large list of extensions (which are all QA'd and supported by Zend) there are times when you would like to include non-official extensions from PECL for various reasons.
</blockquote>
<p>
He breaks it down into a few simple steps - download, "phpize" the extension, compile it and add the extension to the php.ini. He details the second step of the process (the phpize) because of some of the differences there are between doing it for a normal PHP install and a Zend Core install.
</p>
<p>
He also provides directions for an exception to the rule - compiling a PDO driver for your ZC install. You'll have to trick the Zend Core installation into using the right files, though. Full instructions are included.
</p>]]></description>
      <pubDate>Tue, 08 Jan 2008 09:32:00 -0600</pubDate>
    </item>
  </channel>
</rss>
