<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Wrapping C++ Classes in a PHP Extension</title>
	<atom:link href="http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/</link>
	<description>Thoughts on Software and Other Things</description>
	<lastBuildDate>Wed, 07 Jul 2010 21:20:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: toudi</title>
		<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/comment-page-1/#comment-439</link>
		<dc:creator>toudi</dc:creator>
		<pubDate>Mon, 13 Jul 2009 14:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://eval.ca/?p=91#comment-439</guid>
		<description>hi paul - i have read Your tutorial and everything went just fine to the moment i needed to chain a method in c++ class. what i mean by this is i would like to call Car-&gt;accelerate()-&gt;brake() using Your example and it works in c++ (one only needs to change the return type from void into Car*), but i haven&#039;t found anything similar to RETURN_OBJECT in zend engine so that i could expose those methods to php. how one can accomplish this? do i have to define my own function RETURN_OBJECT? if so, how?

best regards, toudi</description>
		<content:encoded><![CDATA[<p>hi paul &#8211; i have read Your tutorial and everything went just fine to the moment i needed to chain a method in c++ class. what i mean by this is i would like to call Car-&gt;accelerate()-&gt;brake() using Your example and it works in c++ (one only needs to change the return type from void into Car*), but i haven&#8217;t found anything similar to RETURN_OBJECT in zend engine so that i could expose those methods to php. how one can accomplish this? do i have to define my own function RETURN_OBJECT? if so, how?</p>
<p>best regards, toudi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro2</title>
		<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/comment-page-1/#comment-325</link>
		<dc:creator>Pedro2</dc:creator>
		<pubDate>Thu, 18 Jun 2009 09:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://eval.ca/?p=91#comment-325</guid>
		<description>Thanks for your help! Unfortunately, I have to use structs in my PHP extension. Some suggestions for it?</description>
		<content:encoded><![CDATA[<p>Thanks for your help! Unfortunately, I have to use structs in my PHP extension. Some suggestions for it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/comment-page-1/#comment-290</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 09 Jun 2009 03:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://eval.ca/?p=91#comment-290</guid>
		<description>Hi Pedro, wrapping C functions shouldn&#039;t be an issue at all. PHP is written in C (and most of the extensions you write will be in C) so there really isn&#039;t anything to do... if you have a function in C that you would like to make available to userspace scripts, just call it from a PHP_FUNCTION. The only issue you will have to deal with is converting parameters and return values between zend values and the respective C types. Luckily, unless you are dealing with structs, this too should be relatively simple. Hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Pedro, wrapping C functions shouldn&#8217;t be an issue at all. PHP is written in C (and most of the extensions you write will be in C) so there really isn&#8217;t anything to do&#8230; if you have a function in C that you would like to make available to userspace scripts, just call it from a PHP_FUNCTION. The only issue you will have to deal with is converting parameters and return values between zend values and the respective C types. Luckily, unless you are dealing with structs, this too should be relatively simple. Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/comment-page-1/#comment-174</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Sat, 16 May 2009 21:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://eval.ca/?p=91#comment-174</guid>
		<description>Hello, your tutorial is very useful, thanks for it. Do you know some article that explains &quot;wrappping c functions&quot;?. I think that the process will be very similar but I don&#039;t know clearly how to do it, what do you think?. Thanks</description>
		<content:encoded><![CDATA[<p>Hello, your tutorial is very useful, thanks for it. Do you know some article that explains &#8220;wrappping c functions&#8221;?. I think that the process will be very similar but I don&#8217;t know clearly how to do it, what do you think?. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/comment-page-1/#comment-122</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 01 May 2009 18:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://eval.ca/?p=91#comment-122</guid>
		<description>Hi Mark, thanks for the feedback. I may have a reason to port an existing C++ extension to Windows so I&#039;ll likely be researching the Windows build process quite a bit. I&#039;ll make sure to write something up on that topic if I do end up doing it.</description>
		<content:encoded><![CDATA[<p>Hi Mark, thanks for the feedback. I may have a reason to port an existing C++ extension to Windows so I&#8217;ll likely be researching the Windows build process quite a bit. I&#8217;ll make sure to write something up on that topic if I do end up doing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://blog.eval.ca/2009/04/21/wrapping-c-classes-in-a-php-extension/comment-page-1/#comment-121</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 01 May 2009 18:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://eval.ca/?p=91#comment-121</guid>
		<description>Thanks!.....can you write an article about how to load an *.lib or *.dll on windows.....</description>
		<content:encoded><![CDATA[<p>Thanks!&#8230;..can you write an article about how to load an *.lib or *.dll on windows&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
