<?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: Strange PHP scoping</title>
	<atom:link href="http://blog.motane.lu/2010/05/11/strange-php-scoping/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Accessing a method defined in the current class&#8217; &#8220;granpa&#8221; &#124; Tudor Barbu's professional blog</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1442</link>
		<dc:creator>Accessing a method defined in the current class&#8217; &#8220;granpa&#8221; &#124; Tudor Barbu's professional blog</dc:creator>
		<pubDate>Wed, 04 Aug 2010 09:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1442</guid>
		<description>[...] Tudor said: Interesting, that might work&#8230; more&#187; [...]</description>
		<content:encoded><![CDATA[<p>[...] Tudor said: Interesting, that might work&#8230; more&raquo; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1435</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Mon, 26 Jul 2010 09:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1435</guid>
		<description>Interesting, that might work...</description>
		<content:encoded><![CDATA[<p>Interesting, that might work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gphilip</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1432</link>
		<dc:creator>gphilip</dc:creator>
		<pubDate>Sun, 25 Jul 2010 16:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1432</guid>
		<description>Wow, this is weird, but I can imagine an excellent use, which is an implementation of multiple inheritance.</description>
		<content:encoded><![CDATA[<p>Wow, this is weird, but I can imagine an excellent use, which is an implementation of multiple inheritance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1328</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Wed, 12 May 2010 13:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1328</guid>
		<description>@scribu I mean that this is obviously by design...</description>
		<content:encoded><![CDATA[<p>@scribu I mean that this is obviously by design&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scribu</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1327</link>
		<dc:creator>scribu</dc:creator>
		<pubDate>Wed, 12 May 2010 13:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1327</guid>
		<description>BTW, you should style the blockquotes in your comments. ;-)</description>
		<content:encoded><![CDATA[<p>BTW, you should style the blockquotes in your comments. <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scribu</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1326</link>
		<dc:creator>scribu</dc:creator>
		<pubDate>Wed, 12 May 2010 13:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1326</guid>
		<description>&lt;blockquote&gt;@Andy Roberts Call me old fashioned, but if you call a method statically you shouldn’t have the $this pointer in its body. &lt;/blockquote&gt;

As a counter example, think about parent::some_method(). You use the static resolution operator there too.

Either way, really strange.

What do you mean by &quot;It’s too well supported to be a bug…&quot; ?</description>
		<content:encoded><![CDATA[<blockquote><p>@Andy Roberts Call me old fashioned, but if you call a method statically you shouldn’t have the $this pointer in its body. </p></blockquote>
<p>As a counter example, think about parent::some_method(). You use the static resolution operator there too.</p>
<p>Either way, really strange.</p>
<p>What do you mean by &#8220;It’s too well supported to be a bug…&#8221; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1321</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Tue, 11 May 2010 15:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1321</guid>
		<description>But it doesn&#039;t throw a runtime error. It substitutes $this with the caller object. Weird...

And PHP 4 died out like 4 years ago...let&#039;s move on people :)</description>
		<content:encoded><![CDATA[<p>But it doesn&#8217;t throw a runtime error. It substitutes $this with the caller object. Weird&#8230;</p>
<p>And PHP 4 died out like 4 years ago&#8230;let&#8217;s move on people <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ionut G. Stan</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1320</link>
		<dc:creator>Ionut G. Stan</dc:creator>
		<pubDate>Tue, 11 May 2010 14:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1320</guid>
		<description>It&#039;s not a bug, it&#039;s just a remnant of the PHP 4 era when there was no explicit declaration for static methods. You simply called it statically and expect a runtime error if someone use $this inside that method.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not a bug, it&#8217;s just a remnant of the PHP 4 era when there was no explicit declaration for static methods. You simply called it statically and expect a runtime error if someone use $this inside that method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1319</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Tue, 11 May 2010 12:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1319</guid>
		<description>It&#039;s too well supported to be a bug...</description>
		<content:encoded><![CDATA[<p>It&#8217;s too well supported to be a bug&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Brehar</title>
		<link>http://blog.motane.lu/2010/05/11/strange-php-scoping/comment-page-1/#comment-1318</link>
		<dc:creator>Mihai Brehar</dc:creator>
		<pubDate>Tue, 11 May 2010 12:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=1360#comment-1318</guid>
		<description>Maybe you should fill a bug report :)</description>
		<content:encoded><![CDATA[<p>Maybe you should fill a bug report <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

