<?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>Sun, 07 Sep 2008 19:20:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Micheal Kimsal's Blog: Symfony __toString() generation]]></title>
      <guid>http://www.phpdeveloper.org/news/10865</guid>
      <link>http://www.phpdeveloper.org/news/10865</link>
      <description><![CDATA[<p>
<i>Michael Kimsal</i> has <A href="http://michaelkimsal.com/blog/symfony-__tostring-generation/">pointed out</a> a small irritation when using the Symfony framework and models - an issue when using models that have relationships.
</p>
<blockquote>
If there are relations (an Author has a Book, for example). the generated forms will complain that the generated Models need a __toString() method to be used in the Form/View.  In grails, this is the case, but every domain (corresponding to a Symfony 'model') has an implicit toString() method already generated, which return the string "<domain>:<id>".  For most production work, you'll want to override it with whatever you need the string to read, but for prototyping, it's fine.
</blockquote>
<p>
He went in and modified the Symfony core to add in a __toString call that would return the object correctly. Several of the commentors agree with his frustration and some of the Symfony developers even chime in with some of the reasoning behind why it's like that.
</p>]]></description>
      <pubDate>Wed, 20 Aug 2008 11:14:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPImpact Blog: Zend_Form Performance Issues]]></title>
      <guid>http://www.phpdeveloper.org/news/10554</guid>
      <link>http://www.phpdeveloper.org/news/10554</link>
      <description><![CDATA[<p>
On the PHP::Impact blog, there's a <a href="http://phpimpact.wordpress.com/2008/07/06/zend_form-performance-issues/">new post</a> mentioning some of the problems that he (<i>Federico</i>) has run into when his Zend_Form forms got larger and larger - performance.
</p>
<blockquote>
If you are using Zend_Form and your site increases in complexity and attracts more traffic, you are most likely to run into performance problems. Of course, bigger and more complex projects result in more load on your servers. [...] In this post I'll explain the problems I faced when using Zend_Form and how I managed to optimize it and improve the performance of my application.
</blockquote>
<p>
He ran a few tests against his code and found out that one of the biggest causes of overhead was the many calls to other components in the framework to handle different parts of the output. His solution was to modify the Zend_Form_Elements component to check for dependencies before the form is executed. Pre-loading like this prevents the high-overhead (and repetitive) dynamic loading later on.
</p>]]></description>
      <pubDate>Mon, 07 Jul 2008 10:21:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ibuildings Blog: Accessing object properties by reference]]></title>
      <guid>http://www.phpdeveloper.org/news/10114</guid>
      <link>http://www.phpdeveloper.org/news/10114</link>
      <description><![CDATA[<p>
On the Ibuildings blog today, <i>Harrie Verveer</i> has <a href="http://www.ibuildings.com/blog/archives/951-Accessing-object-properties-by-reference.html">posted about</a> an interesting quirk he found when working with objects and references:
</p>
<blockquote>
PHP is a loosely typed language. Most of the time this is very useful because you as a programmer don't have to worry about typecasting: it's done for you. However, on some occasions this can cause some unexpected trouble. [...] In this blog I want to point out what can happen if you try to access object properties by reference when the object is not initialized.
</blockquote>
<p>
<a href="http://www.ibuildings.com/blog/archives/951-Accessing-object-properties-by-reference.html">His example</a> shows the problem when it tries to grab a value from an array in a non-existent object by reference. It results in a dyanamically created object (of that type) with an empty array inside of it. It only works when you grab it by reference, but he shares a tip or two about how you can prevent hard to track down issues like this.
</p>]]></description>
      <pubDate>Mon, 05 May 2008 14:38:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Shantanu Goel's Blog:  Migrating From PHP4 To PHP5: Solving WP-Cache (and maybe other) Issues]]></title>
      <guid>http://www.phpdeveloper.org/news/10091</guid>
      <link>http://www.phpdeveloper.org/news/10091</link>
      <description><![CDATA[<p>
If you're a WordPress user and are in the process of an upgrade from PHP4 to PHP5, you might be having a few issues. One problem can be cause by the wp-cache component and <a href="http://tech.shantanugoel.com/2008/04/07/migrating-from-php4-to-php5-solving-wp-cache-and-maybe-other-issues.html">this recent post</a> from <i>Shantanu Goel</i>.
</p>
<blockquote>
The issues range from weird page layouts, to some controls not working, to some errors popping up here and there, and probably your blog not even displaying. This occurs because even though WordPress is PHP5 compatible, some of the plugins you are using might not be.
</blockquote>
<p>
In his case, it was the wp-cache plugin that was causing the problems. Permissions weren't right to allow it to do its job. This resulted in problems rendering content and with the site acting as it normally would. His solution involved disabling and reenabling the plugin after deleting the cache and lock file the plugin uses.
</p>]]></description>
      <pubDate>Thu, 01 May 2008 14:23:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: Interesting Bug in the HTTP Streams Wrapper]]></title>
      <guid>http://www.phpdeveloper.org/news/9965</guid>
      <link>http://www.phpdeveloper.org/news/9965</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i> has come across an <a href="http://ishouldbecoding.com/2008/04/10/interesting-bug-in-the-http-streams-wrapper">"interesting bug"</a> in PHP's stream wrappers functionality - some strange 404 or 500 HTTP errors in one of his scripts.
</p>
<blockquote>
I wrote a <a href="http://ishouldbecoding.com/2008/04/user/files/pastebin.phps">small script</a> a while back that's gained a surprising amount of popularity thanks to a plug from the site that it posts to. [...] I learned that this [connection from the script] could be done with streams, I attempted to implement it in that fashion, but ran into strange issues where I would get 404 or 500-level HTTP errors rather than the response I was expected.
</blockquote>
<p>
He eventually found <a href="http://bugs.php.net/bug.php?id=44603">the bug</a> related to his problem (in the 5.2.x branch) but happily notes that it has been corrected and will be patched in the upcoming 5.3 (and 6) branches.
</p>]]></description>
      <pubDate>Mon, 14 Apr 2008 08:49:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PEAR Blog: First PEAR bug triage over!]]></title>
      <guid>http://www.phpdeveloper.org/news/9905</guid>
      <link>http://www.phpdeveloper.org/news/9905</link>
      <description><![CDATA[<p>
According to <a href="http://blog.pear.php.net/2008/03/28/first-pear-bug-triage-over/">this post</a> on the PEAR blog, the first PEAR bug triage is now over:
</p>
<blockquote>
PEAR's bug tracker hit the 600+ open bugs mark a month ago. [...] So with 600+ open bugs (not including the feature requests), we had to do something. [...] The logical step was to hold our own bug smashing event and see how it works for PEAR.
</blockquote>
<p>
Back on March 22nd and 23rd (Easter weekend) they hunted for bugs. Several developers showed to help out and many bugs were fixed and they managed to bring the number of open bugs for PEAR down to 547 with the two days of work. There were some milestones reached too:
</p>
<blockquote>
Thanks to the triage, we are close to reaching two important milestones: Closing bug reports with lower bug ID than 1000 (1 bug left!) and 2000 (5 left).
</blockquote>]]></description>
      <pubDate>Thu, 03 Apr 2008 10:26:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: Why I think PDO sucks]]></title>
      <guid>http://www.phpdeveloper.org/news/9898</guid>
      <link>http://www.phpdeveloper.org/news/9898</link>
      <description><![CDATA[<p>
<i>Michael Kimsal</i> has <a href="http://michaelkimsal.com/blog/2008/04/why-i-think-pdo-sucks/">posted his opinion</a> on why PDO, the <a href="http://us.php.net/pdo">database interface layer</a> for PHP, sucks.
</p>
<blockquote>
Every so often I try to use PDO under PHP5, and every time I run in to basic functionality problems with no ability to find out what's going on under the hood.
</blockquote>
<p>
He includes a few comments supporting his statement including an issue where a prepare() call didn't work, his frustration with not being able to see what's "under the hood" and the lack of documentation to help with these sorts of issues. 
</p>]]></description>
      <pubDate>Wed, 02 Apr 2008 19:38:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Enterprise PHP Magazine Launched]]></title>
      <guid>http://www.phpdeveloper.org/news/9873</guid>
      <link>http://www.phpdeveloper.org/news/9873</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/349-New-PHP-Magazine-In-Town.html">pointed out</a> the "new kid in town" when it comes to magazines about PHP - <a href="http://it-republik.de/php/enterprisephp/index.php?lang=en">Enterprise PHP</a>:
</p>
<blockquote>
There is a new PHP magazine called "Enterprise PHP" available in English, German and French which might even console those missing the apparently ill-fated International PHP Magazine. Back before publication the usual tree of suspects led me to being interviewed for the initial edition published a short while back.
</blockquote>
<p>
The <a href="http://it-republik.de/php/enterprisephp/index.php?lang=en">current issue</a> (which you can get for free after a survey) has articles looking at testing your PHP scripts, how "professional" it is to use PHP and the fact that Java is not PHP (wait, isn't that backwards?)
</p>]]></description>
      <pubDate>Fri, 28 Mar 2008 07:51:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: PHP-GTK on Vista Memory Issue]]></title>
      <guid>http://www.phpdeveloper.org/news/9789</guid>
      <link>http://www.phpdeveloper.org/news/9789</link>
      <description><![CDATA[<p>
The PHP-GTK Community Site has <a href="http://php-gtk.eu/phpgtk-on-vista-memory-issue">posted about</a> an issue that's been found with PHP-GTK on a Windows Vista machine that can cause problems with how the OS handles memory (by <i>Wim Stockman</i>).
</p>
<blockquote>
My work station is WinXp system and my friend where I had to create it for has the new Vista and somewhere over 9000 pictures to be managed. On my system everything worked fine, but on my friends system i always got the error can not open file.
</blockquote>
<p>
Further testing revealed that it was the OS at fault - Vista wasn't handling the memory usage for the application correctly. When it was run directly from the file explorer (versus in the PHP-GTK console) though, it worked just fine. 
</p>]]></description>
      <pubDate>Thu, 13 Mar 2008 09:37:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Maggie Nelson's Blog: php|architect: Database Design for PHP Programmers by Mac Newbold]]></title>
      <guid>http://www.phpdeveloper.org/news/9721</guid>
      <link>http://www.phpdeveloper.org/news/9721</link>
      <description><![CDATA[<p>
<i>Maggie Nelson</i> has <a href="http://www.objectivelyoriented.com/2008/02/the_february_2008_issue_of_1.html">pointed out</a> an article in the most recently published edition of <a href="htt://www.phparch.com">php|architect</a> magazine (the February 2008 issue) that's an introduction to database design for programmers (by <i>Mac Newbold</i>).
</p>
<blockquote>
It's a pretty good article about database design and I think all PHP developers who are just starting to integrate databases in their applications should read it. However, there are a few things I'd like to add and point out.
</blockquote>
<p>
The "blurb" for the article mentions MySQL, PostgreSQL, Oracle, Microsoft SQL, SQLite and database schemas. You can find out more about this issue, including how to get your own copy, from the <a href="http://www.phparch.com/c/magazine/issue/67">php|architect website</a>.
</p>]]></description>
      <pubDate>Fri, 29 Feb 2008 07:53:00 -0600</pubDate>
    </item>
  </channel>
</rss>
