<?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>Sun, 26 May 2013 02:26:37 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Wrapping C++ Classes in a PHP Extension]]></title>
      <guid>http://www.phpdeveloper.org/news/12393</guid>
      <link>http://www.phpdeveloper.org/news/12393</link>
      <description><![CDATA[<p>
On the Zend Developer Zone a <a href="http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension">new tutorial</a> has been posted looking at taking your pre-existing C++ functionality and wrapping it in a PHP extension to be used directly in your code.
</p>
<blockquote>
In this tutorial I am going to walk you through creating a PHP extension called "vehicles" which will expose a single class called "Car" (obviously in the real-world, your extensions will expose many classes, but I'm trying to keep things simple). The extension will be built for PHP 5. I am only going to give instructions for building the extension in a UNIX-like environment, although most of what I cover should apply to Windows extension development as well.
</blockquote>
<p>
The tutorial walks you through everything - how the file layout should look, making a build system, the contents of his files (the sample extension lets you do things to the Car like shift gears and brake) and how to combine the C++ code with the build process to create a shared module you can include right in your php.ini.
</p>]]></description>
      <pubDate>Thu, 23 Apr 2009 10:21:50 -0500</pubDate>
    </item>
  </channel>
</rss>
