<?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: Zend PHP5 certification Exam study review 7: PHP4 And PHP5</title>
	<atom:link href="http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/feed/langswitch_lang/en/" rel="self" type="application/rss+xml" />
	<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/</link>
	<description>PHP, CSS, Ajax, webdevelop and everything else.</description>
	<lastBuildDate>Sat, 24 Jul 2010 06:44:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Henry Lu</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1852</link>
		<dc:creator>Henry Lu</dc:creator>
		<pubDate>Fri, 12 Jun 2009 16:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1852</guid>
		<description>I agree mcloide for the following reasons:
 You should never use parentheses around your return variable when returning by reference, as this will not work. You can only return variables by reference, not the result of a statement. If you use return ($a); then you&#039;re not returning a variable, but the result of the expression ($a)  (which is, of course, the value of $a).
If you are attempting to return the result of an expression, and not a variable, by reference. You can only return variables by reference from a function - nothing else. Since PHP 4.4.0 in the PHP4 branch, and PHP 5.1.0 in the PHP5 branch, an E_NOTICE error is issued if the code tries to return a dynamic expression or a result of the new operator.</description>
		<content:encoded><![CDATA[<p>I agree mcloide for the following reasons:<br />
 You should never use parentheses around your return variable when returning by reference, as this will not work. You can only return variables by reference, not the result of a statement. If you use return ($a); then you&#8217;re not returning a variable, but the result of the expression ($a)  (which is, of course, the value of $a).<br />
If you are attempting to return the result of an expression, and not a variable, by reference. You can only return variables by reference from a function &#8211; nothing else. Since PHP 4.4.0 in the PHP4 branch, and PHP 5.1.0 in the PHP5 branch, an E_NOTICE error is issued if the code tries to return a dynamic expression or a result of the new operator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcloide</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1433</link>
		<dc:creator>mcloide</dc:creator>
		<pubDate>Tue, 26 Aug 2008 00:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1433</guid>
		<description>Hi Heena, about the first question, the correct answer would be 3. PHP4 will throw a notice error for using an undefined variable.</description>
		<content:encoded><![CDATA[<p>Hi Heena, about the first question, the correct answer would be 3. PHP4 will throw a notice error for using an undefined variable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1038</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 01 Jun 2008 06:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1038</guid>
		<description>The answer is 4&gt;$obj1 and $obj2 must be the same instance in php5.</description>
		<content:encoded><![CDATA[<p>The answer is 4>$obj1 and $obj2 must be the same instance in php5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1036</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Sun, 01 Jun 2008 00:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1036</guid>
		<description>yes I tried to post with tag… btw code is here
if($obj1===$obj2){
//do something
}</description>
		<content:encoded><![CDATA[<p>yes I tried to post with tag… btw code is here<br />
if($obj1===$obj2){<br />
//do something<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1032</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 31 May 2008 07:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1032</guid>
		<description>Do you mean post the code containing the php tags: &lt; ?php and ?&gt;?</description>
		<content:encoded><![CDATA[<p>Do you mean post the code containing the php tags: < ?php and ?>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1028</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Sat, 31 May 2008 02:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1028</guid>
		<description>hey there might be some problem i cant post php code</description>
		<content:encoded><![CDATA[<p>hey there might be some problem i cant post php code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1027</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Sat, 31 May 2008 02:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1027</guid>
		<description>Consider the following php4 code:

what if any potential compatibility problems will this conditional have in php5?
1&gt;this code is undefined in php4
2&gt;none of above
3&gt;$obj1 and $obj2 musr have the same property values in php5
4&gt;$obj1 and $obj2 must be the same instance in php5
5&gt;there are no compatibility issues
please answer
thanks</description>
		<content:encoded><![CDATA[<p>Consider the following php4 code:</p>
<p>what if any potential compatibility problems will this conditional have in php5?<br />
1&gt;this code is undefined in php4<br />
2&gt;none of above<br />
3&gt;$obj1 and $obj2 musr have the same property values in php5<br />
4&gt;$obj1 and $obj2 must be the same instance in php5<br />
5&gt;there are no compatibility issues<br />
please answer<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1019</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 29 May 2008 13:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1019</guid>
		<description>had the problem. But, to me it seems fine.



As to the question, I think the answer is 4).

This code in PHP5 is definitely cause an error. But, in PHP4, there seems some problem found on &quot;return by reference&quot; in the language itself.</description>
		<content:encoded><![CDATA[<p>had the problem. But, to me it seems fine.</p>
<p>As to the question, I think the answer is 4).</p>
<p>This code in PHP5 is definitely cause an error. But, in PHP4, there seems some problem found on &#8220;return by reference&#8221; in the language itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1017</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 29 May 2008 13:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1017</guid>
		<description>Hi,
First, I am sorry if the for($i=0; $i&lt;10;$i++)...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
First, I am sorry if the for($i=0; $i&lt;10;$i++)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1015</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Thu, 29 May 2008 10:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1015</guid>
		<description>less than 10;$i++){
	$retval = myfun();
}
?&gt;</description>
		<content:encoded><![CDATA[<p>less than 10;$i++){<br />
	$retval = myfun();<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1014</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Thu, 29 May 2008 10:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1014</guid>
		<description></description>
		<content:encoded><![CDATA[]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1013</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Thu, 29 May 2008 10:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1013</guid>
		<description>hey i can not post the code?</description>
		<content:encoded><![CDATA[<p>hey i can not post the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1012</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Thu, 29 May 2008 10:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1012</guid>
		<description>for($i=0;$i</description>
		<content:encoded><![CDATA[<p>for($i=0;$i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1011</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Thu, 29 May 2008 10:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1011</guid>
		<description>&lt;?
function &amp;myfun(){
	$str = &quot;mystr&quot;;
	var_dump($str);
	return ($undefined);
}
echo &quot;&quot;;
for($i=0;$i</description>
		<content:encoded><![CDATA[<p>&lt;?<br />
function &amp;myfun(){<br />
	$str = &#8220;mystr&#8221;;<br />
	var_dump($str);<br />
	return ($undefined);<br />
}<br />
echo &#8220;&#8221;;<br />
for($i=0;$i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heena</title>
		<link>http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/comment-page-1/#comment-1010</link>
		<dc:creator>Heena</dc:creator>
		<pubDate>Thu, 29 May 2008 10:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://readtheweb.info/2008/01/16/zend-php5-certification-exam-study-review-7-php4-and-php5/#comment-1010</guid>
		<description>hi,

i got lots of information for zend certification.  its very helpful...  i have one question if can help me.

consider the following code block.
&lt;?
function &amp;myfun(){
	$str = &quot;mystr&quot;;
	var_dump($str);
	return ($undefined);
}
echo &quot;&quot;;
for($i=0;$i none of the above
2&gt; this could would cause an automatic segmentation fault in php4
3&gt; this code would throw a syntax error in php4
4&gt; returning an undefined variable by reference in php4 would cause eventual memory corruption
5&gt; you could not return undefined variable by reference in php4

what could be the answer?

please help
thanks</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>i got lots of information for zend certification.  its very helpful&#8230;  i have one question if can help me.</p>
<p>consider the following code block.<br />
&lt;?<br />
function &amp;myfun(){<br />
	$str = &#8220;mystr&#8221;;<br />
	var_dump($str);<br />
	return ($undefined);<br />
}<br />
echo &#8220;&#8221;;<br />
for($i=0;$i none of the above<br />
2&gt; this could would cause an automatic segmentation fault in php4<br />
3&gt; this code would throw a syntax error in php4<br />
4&gt; returning an undefined variable by reference in php4 would cause eventual memory corruption<br />
5&gt; you could not return undefined variable by reference in php4</p>
<p>what could be the answer?</p>
<p>please help<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
