<?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>Atomized &#187; suck</title>
	<atom:link href="http://atomized.org/tag/suck/feed/" rel="self" type="application/rss+xml" />
	<link>http://atomized.org</link>
	<description>Fragmenting reality.</description>
	<lastBuildDate>Mon, 23 May 2011 23:46:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Oh my god, PHP.</title>
		<link>http://atomized.org/2008/10/oh-my-god-php/</link>
		<comments>http://atomized.org/2008/10/oh-my-god-php/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 22:36:20 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[suck]]></category>

		<guid isPermaLink="false">http://atomized.org/?p=390</guid>
		<description><![CDATA[For reasons I don’t understand, this does not work (ReflectionException &#8216;Class Foo does not have a property named prop&#8217;): class Foo { protected static $prop = 'My value'; } $ref = new ReflectionClass('Foo'); $prop = $ref-&#62;getStaticPropertyValue('prop'); However, this does: $ref = new ReflectionClass('Foo'); $props = $ref-&#62;getStaticProperties(); $prop = $props['prop']; This does not work; PHP cannot [...]]]></description>
			<content:encoded><![CDATA[<p>For reasons I don’t understand, this does not work (ReflectionException &#8216;Class Foo does not have a property named prop&#8217;):</p>
<pre>
class Foo
{
    protected static $prop = 'My value';
}

$ref = new ReflectionClass('Foo');
$prop = $ref-&gt;getStaticPropertyValue('prop');
</pre>
<p>However, this does:</p>
<pre>
$ref = new ReflectionClass('Foo');
$props = $ref-&gt;getStaticProperties();
$prop = $props['prop'];
</pre>
<p>This does not work; PHP cannot dereference array return values:</p>
<pre>
$props = $ref-&gt;getStaticProperties()['prop'];
</pre>
<p>This does not work; PHP cannot dereference objects from new instances:</p>
<pre>
$props = new ReflectionClass('Foo')-&gt;getStaticProperties();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://atomized.org/2008/10/oh-my-god-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

