<?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, 20 Nov 2008 11:03:38 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPFreaks.com: Debugging: A Beginner's guide]]></title>
      <guid>http://www.phpdeveloper.org/news/10374</guid>
      <link>http://www.phpdeveloper.org/news/10374</link>
      <description><![CDATA[<p>
On PHPFreaks.com there's a <a href="http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide">new tutorial</a> providing a beginner's guide to debugging in PHP (with the built in functionality PHP has, not external software).
</p>
<blockquote>
Everyday the forums see probably hundreds of topics posted where the problem is a fairly simple error. [...] As a beginner, it can be difficult to find and solve these errors. By tackling each of these in turn, I hope to teach you some methods of finding and solving them.
</blockquote>
<p>
They look at the different sorts of errors - syntax errors, fatal errors, warnings, notices - as well as some of the ones a bit harder to track down like database problems and logical errors.
</p>]]></description>
      <pubDate>Tue, 10 Jun 2008 07:59:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: multiple __HALT_COMPILER(); no longer raises notices PHP 5.2.2+]]></title>
      <guid>http://www.phpdeveloper.org/news/8139</guid>
      <link>http://www.phpdeveloper.org/news/8139</link>
      <description><![CDATA[<p>
<i>Greg Beaver</i> <a href="http://greg.chiaraquartet.net/archives/180-multiple-__HALT_COMPILER;-no-longer-raises-notices-PHP-5.2.2+.html">points out</a> an obscure problem he came across when working with the new _HALT_COMPILER token in PHP 5:
</p>
<blockquote>
A quick note about an obscure problem peculiar to PHP files that make use of PHP 5's new __HALT_COMPILER(); token.  Prior to PHP 5.2.2, if you included two files that contained the __HALT_COMPILER(); token, you would get a notice that __COMPILER_HALT_OFFSET__ was already defined.
</blockquote>
<p>
This posed a problem for him as he needed it to throw this error for the phar library format. His solution? To <a href="http://news.php.net/php.zend-engine.cvs/5710">patch his installation</a> (PHP5, the PHP6 patch is <a href="http://news.php.net/php.zend-engine.cvs/5867">here</a>) to make the problem a non-issue.
</p>]]></description>
      <pubDate>Thu, 28 Jun 2007 08:03:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ivo Jansch's Blog: System.out.print in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7410</guid>
      <link>http://www.phpdeveloper.org/news/7410</link>
      <description><![CDATA[<p>
<i>Ivo Jansch</i> discovered something interesting by way of an applicant's resume - a hidden "trick" that PHP pulls on the user when they try to use a Java-like syntax with System.
</p>
<blockquote>
<p>
So yesterday I was reviewing a code sample that a job applicant had written during a test and I encountered the following line of code: <?php System.out.print($result); ?> It's not hard to guess what his background was :), but I was initially stunned that this actually works in php.
</p>
</blockquote>
<p>
After a little investigating (and ruling out the Java Bridge), <i>Ivo</i> found that the line was being interpreted literally and was just being handled as a string instead of a constant. He gives two other examples to help with clarification.
</p>]]></description>
      <pubDate>Fri, 09 Mar 2007 07:12:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Overloaded properties (__get)]]></title>
      <guid>http://www.phpdeveloper.org/news/6727</guid>
      <link>http://www.phpdeveloper.org/news/6727</link>
      <description><![CDATA[<p>
While testing the <a href="http://components.ez.no/">eZ components</a> framework on the latest version of PHP (PHP 5.2), <i>Derick Rethans</i> <a href="http://derickrethans.nl/overloaded_properties_get.php">noticed a problem</a> - a new "Notice" message appearing related to a __get call.
</p>
<blockquote>
The first issue is an extra notice in some cases. This all works 'fine' with PHP 5.1, however with PHP 5.2 the [following] notice was generated for this code.
</blockquote>
<p>
The cause? Well, the magic function __get only returns the variables in read mode so they cannot be written to. In <i>Derick</i>'s situation, there was a foreach that was trying to use the values in a read/write mode. As a result, the error was tossed. He does provide a workaround, though, involving casting the information into an array.
</p>]]></description>
      <pubDate>Fri, 17 Nov 2006 08:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: PEAR Template IT bugs fixes release]]></title>
      <guid>http://www.phpdeveloper.org/news/5162</guid>
      <link>http://www.phpdeveloper.org/news/5162</link>
      <description><![CDATA[<p>
<i>Pierre-Alain Joye</i> <a href="http://blog.thepimp.net/index.php/2006/04/12/56-pear-template-it-bugs-fixes-release">notes</a> today that there were some issues with the PEAR <a href="http://pear.php.net/package/HTML_Template_IT/">HTML_Template_IT</a> package he's a lead programmer for.
</p>
<quote>
<i>
<p>
An annoying bug in the ITX callback system introduced a couple of months ago has been fixed. I would force me to write 100 more tests if I forgot again to run them before a release. But the bug seems to not have affected too much people (no related bug report) :-)
</p>
<p>
The other two are a PHP notice and a warning. For some reason fread decided to raise a warning when the content is zero, it will be fixed in PHP soon, but I still have to fix it in my code.
</p>
</i>
</quote>
<p>
You can either check out the <a href="http://pear.php.net/package/HTML_Template_IT/">HTML_template_IT homepage</a> for more or just <a href="http://pear.php.net/get/HTML_Template_IT">grab it directly</a>.
</p>]]></description>
      <pubDate>Wed, 12 Apr 2006 07:37:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin's Blog:  Debugging Php]]></title>
      <guid>http://www.phpdeveloper.org/news/4821</guid>
      <link>http://www.phpdeveloper.org/news/4821</link>
      <description><![CDATA[On his blog, <i>Justin</i> has posted <a href="http://blinduser.blogspot.com/2006/02/debugging-php.html">an article</a> from <i>David Sklar</i> today - a look at PHP error reporting - conifguration, locating errors, and checking variable values as the script runs.
<p>
<quote>
<i>
Whether you're a PHP newbie or a wizard, your programs are going to have bugs in them. Nobody's perfect.
<p>
This article gives you some techniques for finding and fixing the problems in your programs. It covers three topics: how to get the PHP interpreter to report the errors that interest you, how to locate basic syntax errors in your program, How to check the values of variables as your program is running.
</i>
</quote>
<p>
The configuration section mentions the display_errors and log_errors options to help debug your scripts. There's also a bit describing what the different error types mean (parse, fatal, strict) and simple things to look for to handle them. He also suggests some other resources to look at to help with more detailed error reporting...]]></description>
      <pubDate>Thu, 09 Feb 2006 07:22:32 -0600</pubDate>
    </item>
  </channel>
</rss>
