<?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: Resources are passed by reference</title>
	<atom:link href="http://www.phpied.com/resources-passed-by-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/resources-passed-by-reference/</link>
	<description>Stoyan&#039;s blog</description>
	<lastBuildDate>Thu, 20 Jun 2013 00:52:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.phpied.com/resources-passed-by-reference/#comment-185</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Mon, 10 Oct 2005 03:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/resources-are-passed-by-reference/#comment-185</guid>
		<description><![CDATA[That&#039;s right, thanks Marco. I had PHP4 in mind.]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s right, thanks Marco. I had PHP4 in mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.phpied.com/resources-passed-by-reference/#comment-152</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Sun, 02 Oct 2005 22:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/resources-are-passed-by-reference/#comment-152</guid>
		<description><![CDATA[@Constantine, under PHP5, EVERYTHING is passed by reference unless we explicitly clone something. The great big change we&#039;ve all been waiting for. I in fact refuse to take the Zend exam until it&#039;s PHP5ied because right now it would confuse the hell out of me.

In PHP4, which Stoyan is referring to, a RESOURCE is passed by reference while anything else is passed by value. Try replacing the imagecreate line by $image = &quot;foo&quot;; and the imagedestroy line by unset($image); The copy will still result in a string in the var_dum($copy); line, indicating pass by value.]]></description>
		<content:encoded><![CDATA[<p>@Constantine, under PHP5, EVERYTHING is passed by reference unless we explicitly clone something. The great big change we&#8217;ve all been waiting for. I in fact refuse to take the Zend exam until it&#8217;s PHP5ied because right now it would confuse the hell out of me.</p>
<p>In PHP4, which Stoyan is referring to, a RESOURCE is passed by reference while anything else is passed by value. Try replacing the imagecreate line by $image = &#8220;foo&#8221;; and the imagedestroy line by unset($image); The copy will still result in a string in the var_dum($copy); line, indicating pass by value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantine</title>
		<link>http://www.phpied.com/resources-passed-by-reference/#comment-56</link>
		<dc:creator>Constantine</dc:creator>
		<pubDate>Thu, 15 Sep 2005 07:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/resources-are-passed-by-reference/#comment-56</guid>
		<description><![CDATA[under PHP 5.0 and above !]]></description>
		<content:encoded><![CDATA[<p>under PHP 5.0 and above !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
