<?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>Wed, 19 Jun 2013 10:07:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Refulz.com: Traits - Method Precedence and Conflict resolution]]></title>
      <guid>http://www.phpdeveloper.org/news/18029</guid>
      <link>http://www.phpdeveloper.org/news/18029</link>
      <description><![CDATA[<p>
On the Refulz.com site today they've posted a new tutorial looking at the use of traits and <a href="http://php.refulz.com/traits-method-precedence-and-conflict-resolution/">how to resolve conflicts</a> and work with method precedence.
</p>
<blockquote>
In our previous post about the <a href="http://php.refulz.com/traits-in-php-multiple-and-nested-traits/">multiple and nested traits</a>, we read how nested and multiple traits can be used in a class. In such cases, there is a possibility of the same method name existing in the trait, and the class using the trait. Furthermore, the same method name might also be present in the parent class of the class using traits. It is important to understand how the precedence order works for such cases.
</blockquote>
<p>
First they look at the precedence between classes and traits with the class always winning...unless the method is inherited from a parent class. They also mention the order when it comes to using the "insteadof" and "as" operators as a way to get around conflicts between traits.
</p>]]></description>
      <pubDate>Thu, 31 May 2012 10:07:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Toomas Romer's Blog: Case study: Is PHP embarrassingly slower than Java?]]></title>
      <guid>http://www.phpdeveloper.org/news/10755</guid>
      <link>http://www.phpdeveloper.org/news/10755</link>
      <description><![CDATA[<p>
In a <a href="http://dow.ngra.de/2008/08/04/optimizing-ip2c-php-implementation/">case study</a> posted to his blog, <i>Toomas Romer</i> wonders if a PHP script is embarrassingly slower than than its Java counterpart.
</p>
<blockquote>
The problem. The PHP implementation [of the <a href="http://firestats.cc/wiki/ip2c">IP2C library</a>] is a lot slower. Embarrassingly slower. Without any caching the Java version is able to do ~6000 queries per second. The PHP counterpart can push through ~850 queries. The implementations are the same. The stats provided by the author of the library are 8000 vs 1200. So about the same as my measurements.
</blockquote>
<p>
He details the script, showing <a href="http://dow.ngra.de/wp-content/uploads/2008/08/vanilla1.png">what parts</a> the script is taking up the most time on. A large part of the execution is tied up in IO and the fseek/fread and readShort/readInt functions take up a good chunk. 
</p>
<p>
He even tries removing the functions and making things a bit more streamlined. This helps, but still lags behind its Java brother. Check out <a href="http://dow.ngra.de/2008/08/04/optimizing-ip2c-php-implementation/">the post</a> for more statistics comparing the two.
</p>]]></description>
      <pubDate>Mon, 04 Aug 2008 12:02:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Inside Open Source: Viewing Large Record Sets in PHPMyAdmin]]></title>
      <guid>http://www.phpdeveloper.org/news/7091</guid>
      <link>http://www.phpdeveloper.org/news/7091</link>
      <description><![CDATA[<p>
From the Inside Open Source blog (from APress) there comes a <a href="http://opensource.apress.com/article/217/viewing-large-record-sets-in-phpmyadmin">helpful tip</a> for those working with Firefox and PHPMyAdmin on a lower resolution screen:
</p>
<blockquote>
<p>
I'm currently working on an e-commerce project involving a relatively small number of database tables. However the clients table consists of 19 fields, making for difficult data review and debugging within PHPMyAdmin, even at 1280Ã-768 resolution.
</p>
<p>
The answer is simple, at least if you're using Firefox. Firefox offers three hotkeys for changing the text size, and resultingly, the amount of text you can see on one screen.
</p>
</blockquote>
<p>
The keys for this easy little fix use the Control key and plus (larger), minus (smaller), and zero (return to default size).
</p>]]></description>
      <pubDate>Mon, 15 Jan 2007 09:47:00 -0600</pubDate>
    </item>
  </channel>
</rss>
