<?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, 24 May 2012 19:02:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: Power dump() on your PHP applications]]></title>
      <guid>http://www.phpdeveloper.org/news/15211</guid>
      <link>http://www.phpdeveloper.org/news/15211</link>
      <description><![CDATA[<p>
<i>Phil Sturgeon</i> has <a href="http://philsturgeon.co.uk/news/2010/09/power-dump-php-applications">a quick new post</a> with a code snippet that could make your debugging life a bit simpler - a "dump" function that can give you a bit more information about your error than a standard <a href="http://php.net/var_dump">var_dump</a>.
</p>
<blockquote>
When trying to work out what the hell is going wrong in your PHP application the first thing most of us start doing is madly start var_dump()'ing everything possible to work out where the problem is. var_dump() is fine, but by default it comes out in one line. So then we need to echo &lt;pre> tags. Then we can't always see whats going on, especially if the background is black and bla bla bla so it goes on.
</blockquote>
<p>
He mentions an alternative like XDebug, but that also requires access to install it on the server. His alternative, the "dump" function, catches the error, pulls out a backtrace of the path your script took to get there and echoes it out with the line number of the error and filename.
</p>]]></description>
      <pubDate>Thu, 30 Sep 2010 11:04:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: CDC Update (or an Unusual Parse Error)]]></title>
      <guid>http://www.phpdeveloper.org/news/12311</guid>
      <link>http://www.phpdeveloper.org/news/12311</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i> <a href="http://ishouldbecoding.com/2009/04/09/cdc-update">came across an interesting bug</a> when working with the <a href="http://github.com/elazar/cdc/tree/master">Cares Document Checker</a> he's developing related to linting (running a syntax check) on a given PHP file.
</p>
<blockquote>
While doing a lint check on a code block, a parse error was occurring on a line that contained a comment in the original source file. [...] Presumably what was happening was, even though the var_dump() call showed that actual newlines were being interpreted correctly, the r was also being interpreted rather than taken literally. This caused the comma following it to generate the error I was receiving.
</blockquote>
<p>
An alternative to the method he was using, <a href="http://php.net/shell_exec">shell_exec</a>, is <a href="http://php.net/proc_open">proc_open</a>, a function that opens a resource to handle a command execution and allows for more than just the "point and shoot" execution that things like shell_exec, <a href="http://php.net/exec"> or <a href="http://php.net/system">system</a>.
</p>]]></description>
      <pubDate>Thu, 09 Apr 2009 09:32:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Working with the XDebug extension's var_dump() function ]]></title>
      <guid>http://www.phpdeveloper.org/news/11969</guid>
      <link>http://www.phpdeveloper.org/news/11969</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Working-with-the-Xdebug-Extensions-vardump-function/">next part</a> in their series looking at using the XDebug extension. This time they focus on the var_dump function and the enhancements the extension brings to the table.
</p>
<blockquote>
As you may know, "var_dump()" is a PHP native function, but the X-debug library provides an enhanced version of it that's capable of retrieving much more information about a supplied variable. These capabilities greatly extend its usefulness in debugging.
</blockquote>
<p>
This enhanced version of <a href="http://php.net/var_dump">var_dump</a> displays not only the usual variable information (types, value, etc) but also allows for more advanced output like the object definition, including properties, in their <a href="http://www.devshed.com/c/a/PHP/Working-with-the-Xdebug-Extensions-vardump-function/3/">example</a>.
</p>]]></description>
      <pubDate>Wed, 18 Feb 2009 07:57:55 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brandon Savage's Blog: Bug-Free: Your Bug-Fixing Toolkit (Part 1 of N)]]></title>
      <guid>http://www.phpdeveloper.org/news/11225</guid>
      <link>http://www.phpdeveloper.org/news/11225</link>
      <description><![CDATA[<p>
<i>Brandon Savage</i> has the <a href="http://www.brandonsavage.net/entry/bugfree-your-bugfixing-toolkit-part-1-of-n.html">first part</a> of a series posted (with N parts) showing off some of the tools that PHP already has built in to make your debugging life easier.
</p>
<blockquote>
PHP has a large number of tools for fixing bugs and resolving underlying issues. But many people don't know what they are, and some of them are extensions requiring installation in order to work. In this series, we'll explore some features for debugging PHP scripts, from the most basic to more advanced.
</blockquote>
<p>
He <a href="http://www.brandonsavage.net/entry/bugfree-your-bugfixing-toolkit-part-1-of-n.html">looks at</a> three of the most basic ones (and ones that most developers I know out there use every day) - <a href="http://php.net/var_dump">var_dump</a>, <a href="http://php.net/print_r">print_r</a> and <a href="http://php.net/var_export">var_export</a>. Examples of each in use are included...
</p>]]></description>
      <pubDate>Thu, 16 Oct 2008 10:29:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Replace print_r and var_dump with Krumo]]></title>
      <guid>http://www.phpdeveloper.org/news/9943</guid>
      <link>http://www.phpdeveloper.org/news/9943</link>
      <description><![CDATA[<p>
<i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2008/04/07/replace-print_r-and-var_dump-with-krumo/">proposed a replacement</a> for the usual var_dump or print_r sort of debugging developers tend to do - <a href="http://krumo.sourceforge.net/">Krumo</a>.
</p>
<blockquote>
To put it simply, Krumo is a replacement for print_r() and var_dump(). By definition Krumo is a debugging tool (now for PHP5 only), which displays structured information about any PHP variable [...] it does the same job, but it presents the information beautified using CSS and DHTML.
</blockquote>
<p>
It also supports output of other data in a "pretty format" like backtraces, included files and a listing of all constants. You can check out a demo of it in action <a href="http://kaloyan.info/krumo/demo/index.php">here</a>.
</p>]]></description>
      <pubDate>Wed, 09 Apr 2008 14:44:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Introducing xdebug]]></title>
      <guid>http://www.phpdeveloper.org/news/9209</guid>
      <link>http://www.phpdeveloper.org/news/9209</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today, <i>Stefan Priebsch</i> has written up <a href="http://devzone.zend.com/article/2803-Introducing-xdebug">an article</a> introducing fellow developers to XDebug, a popular PHP debugging suite.
</p>
<blockquote>
This article is the first installment of a five-part series of articles covering xdebug, a free and open source swiss army knife tool for PHP developers. <a href="http://www.xdebug.org/">xdebug</a> is a PHP extension created by Derick Rethans, one of the PHP core developers. This week, we will show you how to install xdebug and introduce you to some of the basic features. In the subsequent parts of this article series, we will have a closer look at one of xdebug's main features, namely tracing, profiling, debugging, and code coverage.
</blockquote>
<p>
In <a href="http://devzone.zend.com/article/2803-Introducing-xdebug">this first installment</a>, he looks at installing the software (both on a unix-based system and on a Windows box) and how to turn it on to work with your web server. He also mentions some of the error output options including the "new and improved" var_dump call and the stack trace method to help you locate exactly where in the code the error's hidden.
</p>]]></description>
      <pubDate>Mon, 10 Dec 2007 12:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sara Golemon's Blog: Fun with unicode]]></title>
      <guid>http://www.phpdeveloper.org/news/8347</guid>
      <link>http://www.phpdeveloper.org/news/8347</link>
      <description><![CDATA[<p>
<i>Sara Golemon</i>, being interested in Unicode as she is, <a href="http://blog.libssh2.org/index.php?/archives/69-Fun-with-unicode.html">decided to investigate further</a> when she saw <a href="http://blog.milkfarmsoft.com/?p=63">a recent post</a> about issues with Unicode math symbols:
</p>
<blockquote>
Being a whimsical sort, I decided that actually <a href="http://blog.libssh2.org/uploads/fun-with-unicode.diff">implementing his request</a> would be more fun than simply pish-poshing it. I'm not suggesting this be part of PHP6 (I still don't personally think it's a good idea), but it's a fun exercise and good for a conversation starter...
</blockquote>
<p>
There's several things she can <a href="http://blog.libssh2.org/index.php?/archives/69-Fun-with-unicode.html">now do</a> with the special characters including dumping out the results of divisions, comparisons and fractions natively.
</p>]]></description>
      <pubDate>Mon, 30 Jul 2007 08:45:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Clay Loveless' Blog: PHP and JSON: Cut #987]]></title>
      <guid>http://www.phpdeveloper.org/news/7364</guid>
      <link>http://www.phpdeveloper.org/news/7364</link>
      <description><![CDATA[<p>
In a <a href="http://killersoft.com/randomstrings/2007/02/28/php-and-json-cut-987/">new post</a> today, <i>Clay Loveless</i> talks about some issues he's been having with PHP and JSON, specifically with the JSON encoding method in PHP 5.2.1.
</p>
<blockquote>
As of PHP 5.2.1, json_decode() no longer follows <a href="http://www.ietf.org/rfc/rfc4627.txt">the published standards</a> for JSON-encoded texts. Why not? For no reason other than the convenience of those ignorant of JSON standards.
</blockquote>
<p>
His complaint stems from the results of a vat_dump statement - prior to this version it would give a NULL, but now it returns a "bool(true)" value back, resulting in some breakage of previous scripts. He spends the rest of the post explaining his voyage through the JSON world and how things are supposed to behave. He also digs a little deeper into the var_dump issue and why he thinks it's such a bad thing.
</p>]]></description>
      <pubDate>Thu, 01 Mar 2007 08:43:00 -0600</pubDate>
    </item>
  </channel>
</rss>

