<?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: 基于libmemcached开发php的扩展模块</title>
	<atom:link href="http://www.toplee.com/blog/533.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toplee.com/blog/533.html</link>
	<description>活到老，学到老 ...   @ IT，业界，互联网</description>
	<lastBuildDate>Wed, 03 Mar 2010 13:58:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: edwardhey</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-30913</link>
		<dc:creator>edwardhey</dc:creator>
		<pubDate>Fri, 06 Mar 2009 16:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-30913</guid>
		<description>Michael大哥,请教个问题:

在编写扩展的时候

PHP_FUNCTION(test)
{

	zval *var;
	char *st=&quot;&quot;;
	int st_len=0;

	zend_bool i = 0;
	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, &quot;z&#124;sb&quot;, &amp;var,&amp;st, &amp;st_len,&amp;i) == FAILURE)
	{
		RETURN_FALSE;
	}

//我想让程序退出,就好像调用php的 exit()或die()函数; 请问这里该怎么实现呢？
}</description>
		<content:encoded><![CDATA[<p>Michael大哥,请教个问题:</p>
<p>在编写扩展的时候</p>
<p>PHP_FUNCTION(test)<br />
{</p>
<p>	zval *var;<br />
	char *st=&#8221;";<br />
	int st_len=0;</p>
<p>	zend_bool i = 0;<br />
	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, &#8220;z|sb&#8221;, &amp;var,&amp;st, &amp;st_len,&amp;i) == FAILURE)<br />
	{<br />
		RETURN_FALSE;<br />
	}</p>
<p>//我想让程序退出,就好像调用php的 exit()或die()函数; 请问这里该怎么实现呢？<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-27889</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 05 Jun 2008 15:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-27889</guid>
		<description>[Comment ID #26053 Will Be Quoted Here]

本来是帮asd顺手给弄出来的，结果没想后来因工作耽误了，ads兄弟确跑到我前面去了，对不住大家了，朋友们可以去asd的站上看他刚写出来的完整的扩展代码，地址在这里： http://www.laoniphp.com/</description>
		<content:encoded><![CDATA[<blockquote class='comment_quote'><p><a href="http://www.toplee.com/blog/533.html#comment-26053" title="Click here to view the original comment"><em>逆雪寒 on April 17, 2008 at 9:45 am said:</em></a></p>
<p>呵呵。我是asd 。老大忙。肯定没那么快更新拉。你以为老大专业出教程的呀？ 老大不用急。哈哈</p></blockquote>
<p>本来是帮asd顺手给弄出来的，结果没想后来因工作耽误了，ads兄弟确跑到我前面去了，对不住大家了，朋友们可以去asd的站上看他刚写出来的完整的扩展代码，地址在这里： <a href="http://www.laoniphp.com/" rel="nofollow">http://www.laoniphp.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 逆雪寒</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-26053</link>
		<dc:creator>逆雪寒</dc:creator>
		<pubDate>Thu, 17 Apr 2008 01:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-26053</guid>
		<description>呵呵。我是asd 。老大忙。肯定没那么快更新拉。你以为老大专业出教程的呀？ 老大不用急。哈哈</description>
		<content:encoded><![CDATA[<p>呵呵。我是asd 。老大忙。肯定没那么快更新拉。你以为老大专业出教程的呀？ 老大不用急。哈哈</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-26052</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 17 Apr 2008 01:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-26052</guid>
		<description>[Comment ID #26048 Will Be Quoted Here]

抱歉，没有来得及更新，asd 朋友告知有了一个已经开发好的，放我一下子丧失了太多热情，又因为最近实在事情太多，把热情和紧急度更高的事情先安排了，空了一定会补齐的。</description>
		<content:encoded><![CDATA[<blockquote class='comment_quote'><p><a href="http://www.toplee.com/blog/533.html#comment-26048" title="Click here to view the original comment"><em>flashjay on April 17, 2008 at 1:34 am said:</em></a></p>
<p>为什么类似的文章老是没有下文呢 。。汗。。。</p></blockquote>
<p>抱歉，没有来得及更新，asd 朋友告知有了一个已经开发好的，放我一下子丧失了太多热情，又因为最近实在事情太多，把热情和紧急度更高的事情先安排了，空了一定会补齐的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flashjay</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-26048</link>
		<dc:creator>flashjay</dc:creator>
		<pubDate>Wed, 16 Apr 2008 17:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-26048</guid>
		<description>为什么类似的文章老是没有下文呢 。。汗。。。</description>
		<content:encoded><![CDATA[<p>为什么类似的文章老是没有下文呢 。。汗。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 逆雪寒</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-25799</link>
		<dc:creator>逆雪寒</dc:creator>
		<pubDate>Sat, 29 Mar 2008 03:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-25799</guid>
		<description>libmemcached 刚推出来。 ruby 就用它开发了 ruby 的memcache的最新扩展，测试了说性能很好。呵呵我也是看介绍这样说的。Michael 大哥人很好。在这里也要谢谢Michael 对我的帮助。也期待你的libmemcache 新扩展。今天我要搬家。顺便来看看。我顶</description>
		<content:encoded><![CDATA[<p>libmemcached 刚推出来。 ruby 就用它开发了 ruby 的memcache的最新扩展，测试了说性能很好。呵呵我也是看介绍这样说的。Michael 大哥人很好。在这里也要谢谢Michael 对我的帮助。也期待你的libmemcache 新扩展。今天我要搬家。顺便来看看。我顶</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-25778</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 27 Mar 2008 05:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-25778</guid>
		<description>刚才简单看了一下pecl memcached扩展的代码(http://cvs.php.net/viewvc.cgi/pecl/memcache/memcache.c?content-type=text%2Fplain&amp;view=co)，的确如楼上朋友所说，倒是了解到memcached是用到libevent的，具体的从这里可以看到：http://cvs.php.net/viewvc.cgi/pecl/memcache/README?revision=1.3.2.1&amp;view=markup</description>
		<content:encoded><![CDATA[<p>刚才简单看了一下pecl memcached扩展的代码(http://cvs.php.net/viewvc.cgi/pecl/memcache/memcache.c?content-type=text%2Fplain&#038;view=co)，的确如楼上朋友所说，倒是了解到memcached是用到libevent的，具体的从这里可以看到：http://cvs.php.net/viewvc.cgi/pecl/memcache/README?revision=1.3.2.1&#038;view=markup</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roast</title>
		<link>http://www.toplee.com/blog/533.html/comment-page-1#comment-25775</link>
		<dc:creator>Roast</dc:creator>
		<pubDate>Wed, 26 Mar 2008 16:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/533.html#comment-25775</guid>
		<description>Pecl Memcached Extension基于libevant?
Memcached 基于libevant，Pecl Memcached Extension是自己实现了Memcached的协议解析吧，而没有使用libmemcached，这和libevant似乎没有太大关系，3.0+的Pecl Memcached Extension 加入了新的MemcachePool实现，代码写得挺不错的，不过两者的效率倒还没测试过，期待你的新扩展出现…:)</description>
		<content:encoded><![CDATA[<p>Pecl Memcached Extension基于libevant?<br />
Memcached 基于libevant，Pecl Memcached Extension是自己实现了Memcached的协议解析吧，而没有使用libmemcached，这和libevant似乎没有太大关系，3.0+的Pecl Memcached Extension 加入了新的MemcachePool实现，代码写得挺不错的，不过两者的效率倒还没测试过，期待你的新扩展出现…:)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
