<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP vs .Net &#187; Object Oriented Programming</title>
	<atom:link href="http://www.phpvs.net/category/object-oriented-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpvs.net</link>
	<description>ASP.Net and PHP go head to head</description>
	<lastBuildDate>Sat, 24 Dec 2011 18:20:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP 5.3 &#8211; Namespaces and Late Static Binding</title>
		<link>http://www.phpvs.net/2008/02/14/php-53-namespaces-and-late-static-binding/</link>
		<comments>http://www.phpvs.net/2008/02/14/php-53-namespaces-and-late-static-binding/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 00:50:44 +0000</pubDate>
		<dc:creator>blake</dc:creator>
				<category><![CDATA[Object Oriented Programming]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpvs.net/2008/02/14/php-53-namespaces-and-late-static-binding/</guid>
		<description><![CDATA[Work on the Mono machine continues. For reasons as yet undisclosed, I&#039;m rebuilding the Mono test box from scratch. I&#039;m not expecting this to resolve the previous issues I experienced while benchmarking Mono, but it is allowing me to tie up some loose ends. More on that soon. In the meantime, I noticed a new [...]]]></description>
			<content:encoded><![CDATA[<p>Work on the Mono machine continues.  For reasons as yet undisclosed, I&#039;m rebuilding the Mono test box from scratch.  I&#039;m not expecting this to resolve the <a href="http://www.phpvs.net/2008/02/08/benchmarking-mono-aspnet-vs-php-a-slight-problem/">previous issues</a> I experienced while benchmarking Mono, but it is allowing me to tie up some loose ends.  More on that soon.</p>
<p>In the meantime, I noticed a <a href="http://www.sitepoint.com/article/whats-new-php-5-3" target="_new">new article</a> over at Sitepoint about the upcoming PHP 5.3 release, slated for later this year.  Apparently some new features which were originally scheduled for PHP 6 are now included in 5.3, including Late Static Binding, and Namespaces!</p>
<p>While I can&#039;t get too excited about Namespaces, I know there are people out there that will love the fact that they will finally be arriving to PHP-land.  By its very nature a lot of PHP projects are small, and you can usually get along fine without Namespaces on a small project.  But with larger PHP sites and applications like Facebook becoming more commonplace, Namespaces are bound to come in exceedingly useful for some people.</p>
<p>On a more personal-project level, I find Late Static Binding to be much more exciting.  The examples given in the Sitepoint article are very thorough so I won&#039;t reprint them here, but the quick summary is that if you have a function in a Parent class that uses the <code>self::</code> operator, you can&#039;t call that function from the perspective of a Child class, as <code>self::</code> always references the class it is in (ie. the Parent).  Late Static Binding will give PHP developers a new reference called <code>static::</code> which changes that; it will resolve to the static class at runtime (ie. the Child).  This will allow for a much more intuitive extensions of parent classes in object-oriented PHP!</p>
<p>Good stuff, you should check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpvs.net/2008/02/14/php-53-namespaces-and-late-static-binding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

