<?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, 23 May 2012 11:38:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Touchdown Services Blog: Phing development update 01/04/2012]]></title>
      <guid>http://www.phpdeveloper.org/news/17766</guid>
      <link>http://www.phpdeveloper.org/news/17766</link>
      <description><![CDATA[<p>
On the Touchdown Consulting Services blog, there's <a href="http://www.touchdownconsulting.nl/2012/04/phing-development-update-01042012/">a new update posted about Phing</a>, the popular PHP-based <a href="http://phing.info">build tool</a> and some recent advancements the project has made.
</p>
<blockquote>
<a href="http://www.touchdownconsulting.nl/2012/03/phing-development-update/">Roughly a month ago I posted</a> the first in, what should become, a series of development updates concerning <a href="http://www.phing.info/">Phing</a>. This second blog post details the most important updates during the past four weeks as Phing is moving steadily towards another release (2.4.10 is due out next week).
</blockquote>
<p>Updates mentioned in this post are:</p>
<ul>
<li>User Guide starts move to DocBook format
<li>Liquibase docs
<li>PhpDocumentor
<li>PHP 5.4 compatibility
<li>PHAR package
<li>Various (bug)fixes, the 2.4.10 release (listed)
</ul>
<p>
Check out the <a href="http://www.touchdownconsulting.nl/2012/04/phing-development-update-01042012/">full post</a> for more details on each of these topics.
</p>]]></description>
      <pubDate>Tue, 03 Apr 2012 08:43:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Slawek Lukasiewicz's Blog: New Features in PHP 5.4 - JSON Extension & header_register_callback]]></title>
      <guid>http://www.phpdeveloper.org/news/17624</guid>
      <link>http://www.phpdeveloper.org/news/17624</link>
      <description><![CDATA[<p>
In the first two posts of his "features new to PHP 5.4" series <i>Slawek Lukasiewicz</i> has posted about two things that weren't mentioned very often in most of the 5.4 hit lists - improvements to the JSON extension and the header_register_callback method.
</p>
<p>About the <a href="http://www.leftjoin.net/2012/03/php-5-4-json-extension-improvements/">JSON extension improvements</a>:
</p>
<blockquote>
By default, when we pass object to json_encode function, it will return JSON representation of object public properties. [...] PHP 5.4 introduces JsonSerializable interface with JsonSerialize abstract method. After implementing this method we can independently set values used in JSON representation.
</blockquote>
<p>Related to the <a href="http://www.leftjoin.net/2012/03/php-5-4-header_register_callback/">header_register_callback addition</a>
</p>
<blockquote>
After looking at new functions introduced in PHP 5.4 we can found one called <a href="http://www.php.net/manual/en/function.header-register-callback.php">header_register_callback</a>. Using it, we can register callback which will be called before sending output.
</blockquote>
<p>
The stable version of PHP 5.4 has officially been released, so <a href="http://php.net/downloads">get out there and grab it</a> and start using these new features now!
</p>]]></description>
      <pubDate>Mon, 05 Mar 2012 10:16:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Nikita Popov's Blog: htmlspecialchars() improvements in PHP 5.4]]></title>
      <guid>http://www.phpdeveloper.org/news/17462</guid>
      <link>http://www.phpdeveloper.org/news/17462</link>
      <description><![CDATA[<p>
In <a href="http://nikic.github.com/2012/01/28/htmlspecialchars-improvements-in-PHP-5-4">this new post</a> to his blog <i>Nikita Popov</i> looks at an update that might have gotten lost in the shuffle of new features coming in PHP 5.4 - some updates to <a href="http://php.net/htmlspecialchars">htmlspecialchars</a>.
</p>
<blockquote>
One set of changes that I think is particularly important was largely overlooked: For PHP 5.4 cataphract (Artefacto on StackOverflow) heroically rewrote large parts of htmlspecialchars thus fixing various quirks and adding some really nice new features. Here a quick summary of the most important changes: UTF-8 as the default charset, improved error handling (ENT_SUBSTITUTE) and Doctype handling (ENT_HTML401,...).
</blockquote>
<p>
He goes into each of these three main features in a bit more detail, providing code to illustrate the improved error handling and the new flags for Doctype handling (covering HTML 4.01, HTML 5, XML 1 and XHTML).
</p>]]></description>
      <pubDate>Mon, 30 Jan 2012 09:55:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[KingFoo Blog: PHP 5.4 - What's new?]]></title>
      <guid>http://www.phpdeveloper.org/news/17437</guid>
      <link>http://www.phpdeveloper.org/news/17437</link>
      <description><![CDATA[<p>
On the KingFoo blog today there's an excellent look at everything new <a href="http://www.king-foo.be/2012/01/php-5-4-whats-new/">coming up in PHP 5.4</a>, the next version of PHP set to be released in early February.
</p>
<blockquote>
PHP 5.4 will be stable soon.
In this post I'll try to give you an overview and examples of the new PHP 5.4 features. If you want to try out PHP 5.4 (which is currently in RC3), it has to be installed first. I suggest that you try this out on a virtual machine so you don't break your current PHP version.
</blockquote>
<p>Improvements on the list include:</p>
<ul>
<li>Improved Session Extension
<li>Built-in webserver
<li>Traits
<li>Array dereferencing
<li>Method calls through arrays
<li>Binary notation for integers
<li>Instantiate a class without running constructor
<li>Improved JSON extension
<li>Improved CURL extension
</ul>
<p>
And this is just a start - they detail each of the improvements and provide code where needed to illustrate the update. They also link over to the PHP.net manual (or PHP bug tracker) for more information on the new feature/change.
</p>]]></description>
      <pubDate>Tue, 24 Jan 2012 08:50:42 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Why is PHP 5.3 on Windows faster than previous PHP versions?]]></title>
      <guid>http://www.phpdeveloper.org/news/16987</guid>
      <link>http://www.phpdeveloper.org/news/16987</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Brian Swan</i> explains why the latest versions of PHP (the 5.3.x series) are <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/10/12/why-is-php-5-3-on-windows-faster-than-previous-php-versions.aspx">faster now on Windows</a> than some previous versions have been. (Hint: updated technology can work wonders sometimes)
</p>
<blockquote>
[Rasmus Lerdorf recently said at a <a href="http://www.meetup.com/php-49/">Seattle meetup</a>] "If you aren't running PHP 5.3 on Windows, you're lucky…because you have a 40% performance boost coming." He clarified this by saying that, with some help from Microsoft, improvements were made in PHP 5.3 that led to a 40% performance improvement of PHP on Windows. Because he didn't go into the details of why this performance boost was realized, I got questions in email the next day asking about why.
</blockquote>
<p>
The information in a <a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-33-78-metablogapi/8802.image_5F00_511FB339.png">borrowed slide</a> (from a presentation by <a href="http://twitter.com/#!/pierrejoye">Pierre Joye</a>) shows what the differences between the versions are - things like the use of a more modern compiler (VC9 vs VC6), calls to the Win32 API directly and better library management.
</p>]]></description>
      <pubDate>Thu, 13 Oct 2011 08:42:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Xdebug's Code Coverage speedup]]></title>
      <guid>http://www.phpdeveloper.org/news/16898</guid>
      <link>http://www.phpdeveloper.org/news/16898</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post to his blog today talking about some work that's been done to <a href="http://derickrethans.nl/xdebug-codecoverage-speedup.html">speed up XDebug's code coverage generation</a>. Changes in the coming 2.2 release have some improvements that make things perform better and put less stress on PHP in the process.
</p>
<blockquote>
Code coverage tells you how much of your code base is actually being tested by your unit tests. It's a very useful feature, but sadly, it slows down PHP's execution quite a lot. One part of this slowdown is the overhead to record the information internally, but another part is because I have to overload lots of opcodes. (Opcodes are PHP's internal execution units, similar to <a href="http://en.wikipedia.org/wiki/Assembler_%28computer_programming%29#Assembly_language">assembler</a> instructions) They are always overloaded even if code coverage is not used, because it's only safe to overload them for the whole request.
</blockquote>
<p>
These changes were from a combination of <a href="https://github.com/taavi/xdebug/commits/coverage_line_array">contributions from Taavi Burns</a> and a new ini setting that will allow you to enable or disable the code coverage in XDebug. Benchmarking shows a good amount of time reduction in coverage runs - dropping anywhere from a few seconds to over a minute. He also mentions the idea of "modes", shortcuts to predefined settings for different types of reporting (like "profiling" or "tracing").
</p>]]></description>
      <pubDate>Fri, 23 Sep 2011 09:56:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Marco Tabini's Blog: The easiest way to add unit test to your application]]></title>
      <guid>http://www.phpdeveloper.org/news/16837</guid>
      <link>http://www.phpdeveloper.org/news/16837</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Marco Tabini</i> <a href="http://blog.tabini.ca/2011/09/the-easiest-way-to-add-unit-test-to-your-application/">offers some suggestions on unit testing</a> - not really a tutorial on how to it, more of an "easy way in" to introducing it to your development process.
</p>
<blockquote>
Stopping development for weeks while you figure out how to add unit tests to cover your entire codebase is simply something that cannot be done (at least, not if you want to keep your job), no matter what future benefits it might bring. The good news is, adding unit testing to your existing project only takes five minutes - which is pretty much how long it takes to get a unit testing framework installed. That's it. Move on.
</blockquote>
<p>
He puts the emphasis on unit testing to manage change in a code base, not so much to ensure that the current application runs as it should (not initially at least). He's found them most useful in bugfixing, refactoring and when adding new functionality. Current tests (and even tests written in TDD) can help with all of these. He includes reminders that if the tests aren't written well, they're useless and that once you've started testing, it needs to be continuous, even if they're not perfect.
</p>]]></description>
      <pubDate>Fri, 09 Sep 2011 09:17:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: PHP 5.4 features poll: the results]]></title>
      <guid>http://www.phpdeveloper.org/news/16666</guid>
      <link>http://www.phpdeveloper.org/news/16666</link>
      <description><![CDATA[<p>
On DZone.com today <i>Giorgio Sironi</i> has <a href="http://css.dzone.com/articles/php-54-features-poll-results">posted the results</a> of a poll taken a little while back concerning what people thought was the best feature of the upcoming PHP 5.4 release.
</p>
<blockquote>
After two weeks, we have closed the <a href="http://css.dzone.com/polls/what-new-feature-php-54">poll</a> among the PHP community of Web Builder Zone to establish which are the most wanted features, which will influence development of applications on PHP 5.4. Hopefully this poll would also shape our focus in tutorials in the future - I personally plan to dedicate more time to the winning features.
</blockquote>
<p>
Runners up included the removal of magic quotes and strict mode with the top three being (in this order) the upload progress patch, traits and the array improvements leading the pack. You can <a href="http://css.dzone.com/sites/all/files/php54results.png">see the results here</a>.
</p>]]></description>
      <pubDate>Wed, 03 Aug 2011 08:19:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Species Blog: The New Era of PHP Frameworks]]></title>
      <guid>http://www.phpdeveloper.org/news/16374</guid>
      <link>http://www.phpdeveloper.org/news/16374</link>
      <description><![CDATA[<p>
On the Web Species blog there's a new post from <i>Juozas Kaziukenas</i> about the <a href="http://blog.webspecies.co.uk/2011-05-23/the-new-era-of-php-frameworks.html">new era of PHP frameworks</a> that are coming out (or might be already here). This new group of frameworks is redefining the PHP framework world:
</p>
<blockquote>
I have worked on a lot of different systems and projects in my years and most of that was spent doing PHP. However just recently I have noticed a new major point in time - a new era of PHP frameworks. Seems like everything is changing these days. I want to discuss what I think the current state is, what's wrong with it and how the new gang of frameworks is going to change it.
</blockquote>
<p>
<i>Juozas</i> starts with a brief history of the "why" and "how" PHP frameworks came to be and how they've improved over time. In this new generation things like <a href="http://pimple-project.org/">dependency injection containers</a> and <a href="http://www.doctrine-project.org/projects/common/2.0/docs/reference/annotations/en">annotations</a> are changes for the better. Three frameworks mentioned specifically as driving forces in this new movement are <a href="http://framework.zend.com/">Zend Framework 2.0</a>, <a href="http://rad-dev.org/lithium">Lithium</a> and <a href="http://symfony.com/">Symfony2</a>.
</p>]]></description>
      <pubDate>Tue, 24 May 2011 08:16:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[XPertDeveloper.com: PHP coding tips for Performance Improvement]]></title>
      <guid>http://www.phpdeveloper.org/news/16122</guid>
      <link>http://www.phpdeveloper.org/news/16122</link>
      <description><![CDATA[<p>
The XPertDeveloper blog has <a href="http://www.xpertdeveloper.com/2010/10/php-coding-tips-for-performance-improvement/">shared some micro-optimization tips</a> in a new post to their blog today. It's ten things you can do to squeeze that extra little bit out of your application's performance.
</p>
<blockquote>
This post covers most performance improvement tips related to PHP coding. While working with small website or project it's ok to ignore these tips, but when you are dealing with large website or project which is going to maintained for long term and which have large number of user base. Developer must have to consider the below tips from the starting of the project.
</blockquote>
<p>Their tips include:</p>
<ul>
<li>echo is more faster than print
<li>Always use single quotes for long strings instead of double quotes. Because in double quotes it will search for php variable to evaluate them. 
<li>If you can declare a method as static then let it be
<li>Try to minimize relative paths for files inclusion.
</ul>
<p>
Keep in mind that these aren't a "silver bullet" for making your application run faster. These sorts of suggestions should only be applied after the major optimizations (caching with something like APC, good application structure) have been put in place. For most of these examples, you'll only really see an improvement if your application makes use of them heavily in a looping structure.
</p>]]></description>
      <pubDate>Wed, 30 Mar 2011 10:35:14 -0500</pubDate>
    </item>
  </channel>
</rss>

