<?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>Tue, 21 May 2013 18:42:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ant Phillips' Blog: Extending PHP in Project Zero]]></title>
      <guid>http://www.phpdeveloper.org/news/11792</guid>
      <link>http://www.phpdeveloper.org/news/11792</link>
      <description><![CDATA[<p>
<i>Ant Phillips</i> has a <a href="http://antblah.blogspot.com/2009/01/extending-php-in-project-zero.html">brief comparison</a> of PHP and the <a href="http://www.projectzero.org">Project Zero</a> methods for using PHP/PECL extensions (largely written in C) in each environment.
</p>
<blockquote>
<p>
The Zend Engine provides an extension API. This allows anyone to write classes, functions, constants and much more that plug in to the php.net runtime. Taking a peek at the php.net source code in CVS reveals just how many extensions there are. 
</p>
<p>
[...] Zero has a very similar architecture that separates engine and extension. The main difference is that the core PHP language engine is written in Java. Zero also has a comprehensive API called XAPI-J that allows Java extensions to be written for the Zero PHP runtime. 
</p>
</blockquote>
<p>
The main difference between the two is the obvious recompile that the Project Zero extensions will have to go through (via <a href="http://en.wikipedia.org/wiki/Java_Native_Interface">JNI</a>) to work correctly with their version of the core. This allows it to be able to use just about any PHP extension out there and saves a lot of work on recoding the great functionality already there.
</p>]]></description>
      <pubDate>Thu, 22 Jan 2009 10:25:18 -0600</pubDate>
    </item>
  </channel>
</rss>
