<?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: 深入理解PHP原理之变量分离/引用(Variables Separation)</title>
	<atom:link href="http://www.laruence.com/2008/09/19/520.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laruence.com/2008/09/19/520.html</link>
	<description>PHP语言, PHP扩展, Zend引擎相关的研究,技术,新闻分享 - 左手代码 右手诗</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:31:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: yufulou</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-5918</link>
		<dc:creator>yufulou</dc:creator>
		<pubDate>Sat, 28 Jan 2012 04:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-5918</guid>
		<description>看了鸟哥前面的回复，知道怎么回事了，还得感叹一句，原来是鸟哥！！！久仰大名</description>
		<content:encoded><![CDATA[<p>看了鸟哥前面的回复，知道怎么回事了，还得感叹一句，原来是鸟哥！！！久仰大名</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yufulou</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-5917</link>
		<dc:creator>yufulou</dc:creator>
		<pubDate>Sat, 28 Jan 2012 04:30:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-5917</guid>
		<description>最后一题和前面说得根本自相矛盾吧？前面也有一个一样的，您在那的说法是refcount=2,is_ref=1才是啊</description>
		<content:encoded><![CDATA[<p>最后一题和前面说得根本自相矛盾吧？前面也有一个一样的，您在那的说法是refcount=2,is_ref=1才是啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyrec</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-5874</link>
		<dc:creator>Cyrec</dc:creator>
		<pubDate>Tue, 24 Jan 2012 17:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-5874</guid>
		<description>鸟哥写的很详细，受益匪浅。</description>
		<content:encoded><![CDATA[<p>鸟哥写的很详细，受益匪浅。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-5630</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 20 Dec 2011 11:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-5630</guid>
		<description>“PHP必须尽量介绍内存占用率” 是否应为 “PHP必须尽量减少内存占用率”</description>
		<content:encoded><![CDATA[<p>“PHP必须尽量介绍内存占用率” 是否应为 “PHP必须尽量减少内存占用率”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: php的copy on write和change on write一点想法 &#124; Weizhao</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-5628</link>
		<dc:creator>php的copy on write和change on write一点想法 &#124; Weizhao</dc:creator>
		<pubDate>Tue, 20 Dec 2011 03:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-5628</guid>
		<description>[...] http://www.laruence.com/2008/09/19/520.html?cp=all [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.laruence.com/2008/09/19/520.html?cp=all" rel="nofollow">http://www.laruence.com/2008/09/19/520.html?cp=all</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 三元式(ternary)性能优化 &#124; 风雪之隅</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-5281</link>
		<dc:creator>三元式(ternary)性能优化 &#124; 风雪之隅</dc:creator>
		<pubDate>Fri, 04 Nov 2011 03:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-5281</guid>
		<description>[...] 我们都知道PHP用写时复制来对变量复制做性能优化, 而在以前的三元式中, 却每次都会复制, 这在操作数是大数组的情况下, 会造成性能问题: [...]</description>
		<content:encoded><![CDATA[<p>[...] 我们都知道PHP用写时复制来对变量复制做性能优化, 而在以前的三元式中, 却每次都会复制, 这在操作数是大数组的情况下, 会造成性能问题: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: warpig&#039;s blog &#187; 深入理解PHP内存管理之谁动了我的内存</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-4918</link>
		<dc:creator>warpig&#039;s blog &#187; 深入理解PHP内存管理之谁动了我的内存</dc:creator>
		<pubDate>Wed, 14 Sep 2011 04:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-4918</guid>
		<description>[...] 还要结合引用和计数, 这部分的内容请参看我之前的文章深入理解PHP原理之变量分离/引用), 但这个释放不是C编程意义上的释放, 不是交回给OS. 对于PHP来说, [...]</description>
		<content:encoded><![CDATA[<p>[...] 还要结合引用和计数, 这部分的内容请参看我之前的文章深入理解PHP原理之变量分离/引用), 但这个释放不是C编程意义上的释放, 不是交回给OS. 对于PHP来说, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 晓彬</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-4802</link>
		<dc:creator>晓彬</dc:creator>
		<pubDate>Mon, 22 Aug 2011 10:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-4802</guid>
		<description>我也试着去gdb了。
按照说的 声明变量的时候。
要写到符号表中，ZEND_SET_SYMBOL
我就gdb php
break ZEND_SET_SYMBOL
run test.php
断点貌似没用到就结束了。
Php部分是
$var = 1;
$var_ref = &amp;$var;
困惑。
还有，最后一题的 引用计数为啥是1呢？
在赋值的时候$var的zval里的refcount=1 is_ref=0, 应该是不用分离的啊。
难道在$var_ref = &amp;$var; 这次赋值以后才进行的 分离么？困惑求解。</description>
		<content:encoded><![CDATA[<p>我也试着去gdb了。<br />
按照说的 声明变量的时候。<br />
要写到符号表中，ZEND_SET_SYMBOL<br />
我就gdb php<br />
break ZEND_SET_SYMBOL<br />
run test.php<br />
断点貌似没用到就结束了。<br />
Php部分是<br />
$var = 1;<br />
$var_ref = &amp;$var;<br />
困惑。<br />
还有，最后一题的 引用计数为啥是1呢？<br />
在赋值的时候$var的zval里的refcount=1 is_ref=0, 应该是不用分离的啊。<br />
难道在$var_ref = &amp;$var; 这次赋值以后才进行的 分离么？困惑求解。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 晓彬</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-4801</link>
		<dc:creator>晓彬</dc:creator>
		<pubDate>Mon, 22 Aug 2011 09:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-4801</guid>
		<description>最后一题，将$var和$var_ref做change on write关联。也就是，refcount=2, is_ref=1;
为什么 dump 出来 引用计数是1呢？而且还有一个形参的1，就代表原先他本是的引用计数是0吗？</description>
		<content:encoded><![CDATA[<p>最后一题，将$var和$var_ref做change on write关联。也就是，refcount=2, is_ref=1;<br />
为什么 dump 出来 引用计数是1呢？而且还有一个形参的1，就代表原先他本是的引用计数是0吗？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 深入理解PHP原理之变量分离/引用(Variables Separation) &#124; 万维网黑客联盟</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-3948</link>
		<dc:creator>深入理解PHP原理之变量分离/引用(Variables Separation) &#124; 万维网黑客联盟</dc:creator>
		<pubDate>Sun, 20 Mar 2011 10:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-3948</guid>
		<description>[...] 本文地址: http://www.laruence.com/2008/09/19/520.html [...]</description>
		<content:encoded><![CDATA[<p>[...] 本文地址: <a href="http://www.laruence.com/2008/09/19/520.html" rel="nofollow">http://www.laruence.com/2008/09/19/520.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 一个想当然造成的错误(赋值语句的返回值) &#124; 万维网黑客联盟</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-3944</link>
		<dc:creator>一个想当然造成的错误(赋值语句的返回值) &#124; 万维网黑客联盟</dc:creator>
		<pubDate>Sun, 20 Mar 2011 10:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-3944</guid>
		<description>[...] 结合之前的文章深入理解PHP原理之变量分离/引用(Variables Separation)中介绍过的相关知识, [...]</description>
		<content:encoded><![CDATA[<p>[...] 结合之前的文章深入理解PHP原理之变量分离/引用(Variables Separation)中介绍过的相关知识, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 可序列化单例模式的一个奇怪问题的回答 &#124; 风雪之隅</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-3878</link>
		<dc:creator>可序列化单例模式的一个奇怪问题的回答 &#124; 风雪之隅</dc:creator>
		<pubDate>Fri, 18 Mar 2011 15:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-3878</guid>
		<description>[...] var_dump($a === Singleton::getInstance()); //bool(false)  那么为什么呢? 我之前的文章深入理解PHP原理之变量分离/引用(Variables Separation)中曾经介绍过, 在PHP中, [...]</description>
		<content:encoded><![CDATA[<p>[...] var_dump($a === Singleton::getInstance()); //bool(false)  那么为什么呢? 我之前的文章深入理解PHP原理之变量分离/引用(Variables Separation)中曾经介绍过, 在PHP中, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 谁动了我的内存(PHP内存管理) &#124; 风雪之隅</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-3773</link>
		<dc:creator>谁动了我的内存(PHP内存管理) &#124; 风雪之隅</dc:creator>
		<pubDate>Fri, 04 Mar 2011 05:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-3773</guid>
		<description>[...] 还要结合引用和计数, 这部分的内容请参看我之前的文章深入理解PHP原理之变量分离/引用), 但这个释放不是C编程意义上的释放, 不是交回给OS. 对于PHP来说, [...]</description>
		<content:encoded><![CDATA[<p>[...] 还要结合引用和计数, 这部分的内容请参看我之前的文章深入理解PHP原理之变量分离/引用), 但这个释放不是C编程意义上的释放, 不是交回给OS. 对于PHP来说, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fengchuan</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-3718</link>
		<dc:creator>fengchuan</dc:creator>
		<pubDate>Wed, 16 Feb 2011 13:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-3718</guid>
		<description>楼主我对你十分敬仰啊。。。。大牛</description>
		<content:encoded><![CDATA[<p>楼主我对你十分敬仰啊。。。。大牛</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: (转)深入理解PHP原理之变量分离/引用(Variables Separation) &#187; Creative Power</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-3248</link>
		<dc:creator>(转)深入理解PHP原理之变量分离/引用(Variables Separation) &#187; Creative Power</dc:creator>
		<pubDate>Sat, 18 Sep 2010 17:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-3248</guid>
		<description>[...] 本文地址: http://www.laruence.com/2008/09/19/520.html [...]</description>
		<content:encoded><![CDATA[<p>[...] 本文地址: <a href="http://www.laruence.com/2008/09/19/520.html" rel="nofollow">http://www.laruence.com/2008/09/19/520.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevindoudou</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-2987</link>
		<dc:creator>kevindoudou</dc:creator>
		<pubDate>Mon, 26 Jul 2010 07:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-2987</guid>
		<description>楼主真是大牛～～～～百度真是藏龙卧虎～～～～学习学习～～～</description>
		<content:encoded><![CDATA[<p>楼主真是大牛～～～～百度真是藏龙卧虎～～～～学习学习～～～</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReflectionFunction(Method)引用参数导致Invocation failed &#171; phplife</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-2878</link>
		<dc:creator>ReflectionFunction(Method)引用参数导致Invocation failed &#171; phplife</dc:creator>
		<pubDate>Sat, 03 Jul 2010 17:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-2878</guid>
		<description>[...] 也就是说, 如果一个申明为引用传递的参数不为引用传递, 而refcount又大于1, 那么在不容许分离的条件下, 就会导致zend_call_function失败返回(如果对refcount和变量分离不了解, 可以参看我之前的文章深入理解PHP原理之变量分离/引用). [...]</description>
		<content:encoded><![CDATA[<p>[...] 也就是说, 如果一个申明为引用传递的参数不为引用传递, 而refcount又大于1, 那么在不容许分离的条件下, 就会导致zend_call_function失败返回(如果对refcount和变量分离不了解, 可以参看我之前的文章深入理解PHP原理之变量分离/引用). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReflectionFunction(Method)引用参数导致Invocation failed &#124; 风雪之隅</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-2827</link>
		<dc:creator>ReflectionFunction(Method)引用参数导致Invocation failed &#124; 风雪之隅</dc:creator>
		<pubDate>Tue, 22 Jun 2010 07:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-2827</guid>
		<description>[...] 也就是说, 如果一个申明为引用传递的参数的refcount大于1了, 并且不容许分离的话, 就会导致出错.(如果对refcount和变量分离不了解, 可以参看我之前的文章深入理解PHP原理之变量分离/引用(Variables Separation)) [...]</description>
		<content:encoded><![CDATA[<p>[...] 也就是说, 如果一个申明为引用传递的参数的refcount大于1了, 并且不容许分离的话, 就会导致出错.(如果对refcount和变量分离不了解, 可以参看我之前的文章深入理解PHP原理之变量分离/引用(Variables Separation)) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laruence</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-2590</link>
		<dc:creator>laruence</dc:creator>
		<pubDate>Thu, 20 May 2010 01:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-2590</guid>
		<description>@Anonymous  最直接的方法是用gdb, 引用数组不会改变元素的refcount, 分离不是指引用的, 分离只是指多个符号指向同一个zval的情况, ;)</description>
		<content:encoded><![CDATA[<p>@Anonymous  最直接的方法是用gdb, 引用数组不会改变元素的refcount, 分离不是指引用的, 分离只是指多个符号指向同一个zval的情况, <img src='http://www.laruence.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laruence</title>
		<link>http://www.laruence.com/2008/09/19/520.html/comment-page-1#comment-2589</link>
		<dc:creator>laruence</dc:creator>
		<pubDate>Thu, 20 May 2010 01:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=520#comment-2589</guid>
		<description>Anonymous</description>
		<content:encoded><![CDATA[<p>Anonymous</p>
]]></content:encoded>
	</item>
</channel>
</rss>

