<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 13:05:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Cormac's Blog: Read-only object variables in php using magic methods]]></title>
      <guid>http://www.phpdeveloper.org/news/11803</guid>
      <link>http://www.phpdeveloper.org/news/11803</link>
      <description><![CDATA[<p>
<a href="http://cormacscode.wordpress.com/2009/01/22/read-only-object-variables-in-php-using-magic-methods/">This new post</a> on <i>Cormac</i>'s blog shows a little trick you can use to make "read-only" object variables with the help of the handy magic methods built in to PHP5.
</p>
<blockquote>
You can create read-only object variables by using the "private" keyword and the __get() and __set() magic methods. [...] So now classWithReadOnlyVar::readOnlyVar is only settable from inside the class, but you can read it from anywhere.
</blockquote>
<p>
His <a href="http://cormacscode.wordpress.com/2009/01/22/read-only-object-variables-in-php-using-magic-methods/">example code</a> initially sets up the read-only variable as a property of the example class. The __get magic method is called to correctly fetch the value but the __set intercepts anything trying to change its value. This same sort of thing can be accomplished with the protected/private keywords in PHP5.
</p>]]></description>
      <pubDate>Fri, 23 Jan 2009 12:09:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lukas Smith's Blog: PHP 5.3.0alpha3 is finally out]]></title>
      <guid>http://www.phpdeveloper.org/news/11513</guid>
      <link>http://www.phpdeveloper.org/news/11513</link>
      <description><![CDATA[<p>
As <a href="http://pooteeweet.org/blog/0/1363">Lukas Smith mentions</a>, the latest alpha release for the PHP 5.3 series has been released - <a href="http://qa.php.net/">PHP 5.3alpha2</a>.
</p>
<blockquote>
Wow, after what feels like ages PHP 5.3.0alpha3 was just released. Originally we hoped to be able to release now intermediate releases every 2-3 weeks, this one took a good 2 months. Somehow this releases did its very best to stall itself. People that needed to work on things together by chance ended up being busy with other things and vacations in just the right order to make things impossible. Most of this was to be attributed to the namespace discussions, which climaxed in the <a href="http://pooteeweet.org/blog/1331">backslash FUD campaign</a>.
</blockquote>
<p>
He notes that a stable release is probably looking good in Q1 of 2009 (with namespaces being the delaying factor). He also suggests something that could help make things a bit simpler in the future - making the internals@ mailing list read-only for anyone outside of core developers. A good bit of the confusion and bickering came from those outside the dev team and it didn't help the group come to a decision any earlier.
</p>
<p>
You can find the official release information for the alpha2 on <a href="http://www.php.net/index.php#id2008-12-04-2">the main PHP.net website</a>.
</p>]]></description>
      <pubDate>Fri, 05 Dec 2008 09:31:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: ImagickPixelIterator is not read-only after all...]]></title>
      <guid>http://www.phpdeveloper.org/news/9050</guid>
      <link>http://www.phpdeveloper.org/news/9050</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> is <a href="http://valokuva.org/?p=79">back with a tip</a> for users of the ImagickPixelIterator functionality of Imagick - it's not read-only after all.
</p>
<blockquote>
A few days ago I got a help request from a user: "How do you change pixel color during the iteration with ImagickPixelIterator". My initial response was that ImagickPixelIterator is read-only. Well, I have to admit I was wrong. After searching trough ImageMagick docs I stumbled across an example and noticed that PixelIterator (and therefor ImagickPixelIterator) is not read-only after all. 
</blockquote>
<p>
He <a href="http://valokuva.org/?p=79">illustrates</a> with a code example, one showing how to make the object from an image and how to update every second pixel to be black. Source and result images are also included.
</p>]]></description>
      <pubDate>Thu, 15 Nov 2007 09:38:00 -0600</pubDate>
    </item>
  </channel>
</rss>
