<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://manuel-pichler.de/feeds/atom.xml" rel="self" title="Manuel Pichler" type="application/atom+xml" />
    <link href="http://www.manuel-pichler.de/"                        rel="alternate"    title="Manuel Pichler" type="text/html" />
    <link href="http://www.manuel-pichler.de/rss.php?version=2.0"     rel="alternate"    title="Manuel Pichler" type="application/rss+xml" />
    <title type="html">Manuel Pichler</title>
    <subtitle type="html">Trust is good, (phpUnder)Control is better.</subtitle>
    
    <id>http://www.manuel-pichler.de/</id>
    <updated>2010-03-04T11:00:21Z</updated>
    <generator uri="http://www.s9y.org/" version="1.3.1">Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://www.manuel-pichler.de/archives/83-PHPMD-0.2.3-released-with-SuppressWarnings-support-and-new-rule-set..html" rel="alternate" title="PHPMD 0.2.3 released with @SuppressWarnings support and new rule set." />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-03-04T09:32:00Z</published>
        <updated>2010-03-04T11:00:21Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=83</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=83</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/13-phpmd" label="phpmd" term="phpmd" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/83-guid.html</id>
        <title type="html">PHPMD 0.2.3 released with @SuppressWarnings support and new rule set.</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  We are proud to announce the 0.2.3 release of the <a href="http://www.manuel-pichler.de/exit.php?url_id=2299&amp;entry_id=83" title="http://phpmd.org"  onmouseover="window.status='http://phpmd.org';return true;" onmouseout="window.status='';return true;">PHP Mess Detector</a>, a tool that takes source code and performs various tests to calculate various quality aspects from it. The measured values are a good starting point for future improvements. This release contains some new features, for example support for the <a href="http://www.manuel-pichler.de/exit.php?url_id=2300&amp;entry_id=83" title="http://phpmd.org/documentation/suppress-warnings.html"  onmouseover="window.status='http://phpmd.org/documentation/suppress-warnings.html';return true;" onmouseout="window.status='';return true;">@SuppressWarnings</a> annotation, that allows you to exclude single methods or complete classes from PHPMD's analyzing process. This annotation can be used to suppress a single rule, a group of rules or PHPMD at all.
</p>

<pre>
/**
 * Suppress all PHPMD warnings for this class.
 *
 * @SuppressWarnings(PHPMD)
 */
class PHPMD_SuppressAll 
{
}

class  PHPMD_SuppressOnMethod
{
    /**
     * Do not warn about the unused parameter $bar.
     *
     * @SuppressWarnings(PHPMD.UnusedFormatParameter)
     */
    public function foo($bar)
    {
    }
}
</pre>

<p>
  Beside several  bugfixes this release comes with a new set of rules that check the naming of methods, variables etc. against common coding conventions and best practices.
</p>

<ul>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2301&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/6"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/6';return true;" onmouseout="window.status='';return true;">#6</a>: PHP Tokenizer required but no error when installing.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2302&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/7"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/7';return true;" onmouseout="window.status='';return true;">#7</a>: UnusedLocalVariable ruleset incorrectly flags variables as unused when used inside double quoted string. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2303&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/browse_code/revision/187"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/browse_code/revision/187';return true;" onmouseout="window.status='';return true;">#187</a>.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2304&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/9"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/9';return true;" onmouseout="window.status='';return true;">#9</a>: Add support for "Suppress warnings" annotations. Implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2305&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/browse_code/revision/200"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/browse_code/revision/200';return true;" onmouseout="window.status='';return true;">#200</a>.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2306&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/10"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/10';return true;" onmouseout="window.status='';return true;">#10</a>: Support for exclude element in rule-set files added.   Implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2307&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/browse_code/revision/189"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/browse_code/revision/189';return true;" onmouseout="window.status='';return true;">#189</a>.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2308&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/13"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/13';return true;" onmouseout="window.status='';return true;">#13</a>: Implement naming rules, e.g. short variables, parameter etc.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2309&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/14"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/14';return true;" onmouseout="window.status='';return true;">#14</a>: ExcessivePublicCount rule should utilize PHP_Depend's cis metric. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2310&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/browse_code/revision/203"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/browse_code/revision/203';return true;" onmouseout="window.status='';return true;">#203</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2311&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/15"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/issue_tracker/issue/15';return true;" onmouseout="window.status='';return true;">#15</a>: ExcessivePublicCount rule is never used. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2312&amp;entry_id=83" title="http://tracker.phpmd.org/php_mess_detector/browse_code/revision/202"  onmouseover="window.status='http://tracker.phpmd.org/php_mess_detector/browse_code/revision/202';return true;" onmouseout="window.status='';return true;">#202</a>.</li>
</ul>
<br />

<p>
  You can get the latest PHPMD version from its PEAR channel: <a href="http://www.manuel-pichler.de/exit.php?url_id=2313&amp;entry_id=83" title="http://pear.phpmd.org"  onmouseover="window.status='http://pear.phpmd.org';return true;" onmouseout="window.status='';return true;">pear.phpmd.org</a> 
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear channel-discover pear.phpmd.org
mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alpha
</pre>

<p>
  Or from our <a href="http://www.manuel-pichler.de/exit.php?url_id=2314&amp;entry_id=83" title="http://github.com/manuelpichler/phpmd"  onmouseover="window.status='http://github.com/manuelpichler/phpmd';return true;" onmouseout="window.status='';return true;">github</a> <a href="http://www.manuel-pichler.de/exit.php?url_id=2314&amp;entry_id=83" title="http://github.com/manuelpichler/phpmd"  onmouseover="window.status='http://github.com/manuelpichler/phpmd';return true;" onmouseout="window.status='';return true;">repository</a>:
</p>

<pre>
mapi@arwen ~ $ git clone git://github.com/manuelpichler/phpmd.git
</pre> 
            </div>
        </content>
        <dc:subject>annotations</dc:subject>
<dc:subject>phpmd</dc:subject>
<dc:subject>quality assurance</dc:subject>
<dc:subject>release announcement</dc:subject>
<dc:subject>static code analysis</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/82-PHP_Depend-0.9.11-released.html" rel="alternate" title="PHP_Depend-0.9.11 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-03-02T20:08:03Z</published>
        <updated>2010-03-02T20:08:03Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=82</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=82</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/82-guid.html</id>
        <title type="html">PHP_Depend-0.9.11 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  I have just released version 0.9.11 of PHP_Depend. It contains a few bug fixes and improvements for PHP_Depend.
</p>
<ul>
  <li>
    Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2291&amp;entry_id=82" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/118"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/118';return true;" onmouseout="window.status='';return true;">#118</a>: Calculation of the Number Of Overwritten Methods is wrong. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2292&amp;entry_id=82" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1112"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1112';return true;" onmouseout="window.status='';return true;">#1112</a>.
  </li>
  <li>
    Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2293&amp;entry_id=82" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/119"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/119';return true;" onmouseout="window.status='';return true;">#119</a>: Three test cases fail for all PHP versions prior to 5.3. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2294&amp;entry_id=82" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1114"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1114';return true;" onmouseout="window.status='';return true;">#1114</a>.
  </li>
  <li>
    Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2295&amp;entry_id=82" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/121"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/121';return true;" onmouseout="window.status='';return true;">#121</a>: Parse arguments of the ASTForeachStatement. Implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2296&amp;entry_id=82" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1115"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1115';return true;" onmouseout="window.status='';return true;">#1115</a>.
  </li>
  <li>
    Critical issue in PHP_Depend's temporary data cache fixed. This bug only occured when running several instances of PHP_Depend in parallel. In this setup the used cache key <a href="http://www.manuel-pichler.de/exit.php?url_id=2297&amp;entry_id=82" title="http://php.net/spl_object_hash"  onmouseover="window.status='http://php.net/spl_object_hash';return true;" onmouseout="window.status='';return true;">spl_object_hash()</a> has caused a corrupted cache, because different php process instances have written different data to the same cache file.
  </li>
</ul>
<br />
<p>
  As always, you can get the latest PHP_Depend version from its PEAR channel: <a href="http://www.manuel-pichler.de/exit.php?url_id=2298&amp;entry_id=82" title="http://pear.pdepend.org"  onmouseover="window.status='http://pear.pdepend.org';return true;" onmouseout="window.status='';return true;">pear.pdepend.org</a>:
</p>
<pre>
  mapi&#64;arwen ~ $ pear channel-discover pear.pdepend.org
  mapi&#64;arwen ~ $ pear install pdepend/PHP_Depend-beta
</pre>
<p>
  Or you can fetch the sources from the subversion reposition:
</p>
<pre>
  mapi&#64;arwen ~ $ svn co http://svn.pdepend.org/branches/0.9.0/
</pre>
<p>
  And additionally you can find a repository mirror on github:
</p>
<pre>
  mapi&#64;arwen ~ $ git clone git://github.com/manuelpichler/pdepend.git
</pre> 
            </div>
        </content>
        <dc:subject>bug fix</dc:subject>
<dc:subject>php_depend</dc:subject>
<dc:subject>release announcement</dc:subject>
<dc:subject>software metrics</dc:subject>
<dc:subject>static code analysis</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/81-PHP_Depend-0.9.10-released.html" rel="alternate" title="PHP_Depend-0.9.10 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-02-23T19:36:01Z</published>
        <updated>2010-02-23T19:36:01Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=81</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=81</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/81-guid.html</id>
        <title type="html">PHP_Depend-0.9.10 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
I have just released the bug fix version 0.9.10 of PHP_Depend. This
release contains several bug fixes and improvements for PHP_Depend.
</p>

<ul>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2272&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/72"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/72';return true;" onmouseout="window.status='';return true;">#72</a>__: Add NOAM, NOOM and NOCC metrics. Implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2273&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1084"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1084';return true;" onmouseout="window.status='';return true;">#1084</a>.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2274&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/74"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/74';return true;" onmouseout="window.status='';return true;">#74</a>: Make CRAP-index available. Implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2275&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1063"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1063';return true;" onmouseout="window.status='';return true;">#1063</a>.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2276&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/105"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/105';return true;" onmouseout="window.status='';return true;">#105</a>: Support for deep search implement. Implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2277&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1078"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1078';return true;" onmouseout="window.status='';return true;">#1078</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2278&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/106"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/106';return true;" onmouseout="window.status='';return true;">#106</a>: Filter algorithm is broken for namespaced internal classes. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2279&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1039"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1039';return true;" onmouseout="window.status='';return true;">#1039</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2280&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/110"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/110';return true;" onmouseout="window.status='';return true;">#110</a>: Duplicate "coupling" directory in test code. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2281&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1032"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1032';return true;" onmouseout="window.status='';return true;">#1032</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2282&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/111"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/111';return true;" onmouseout="window.status='';return true;">#111</a>: Dynamic Strings are treated as literal strings. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2283&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1037"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1037';return true;" onmouseout="window.status='';return true;">#1037</a>. </li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2284&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/114"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/114';return true;" onmouseout="window.status='';return true;">#114</a>: Parsing error caused by complex string expressions fixed. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2285&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1068"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1068';return true;" onmouseout="window.status='';return true;">#1068</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2286&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/115"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/115';return true;" onmouseout="window.status='';return true;">#115</a>: Summary and PHPUnit Report lists unknown classes. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2287&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1101"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1101';return true;" onmouseout="window.status='';return true;">#1101</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2288&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/116"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/116';return true;" onmouseout="window.status='';return true;">#116</a>: Returns reference results in parsing error. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2289&amp;entry_id=81" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1090"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1090';return true;" onmouseout="window.status='';return true;">#1090</a>.</li>
  <li>Performance intensive calculation result cached.</li>
  <li>Test code restructured and improved.</li>
  <li>Concurrency issue for parallel running pdepend instances fixed.</li>
</ul>

<p>
As always, you can get the latest PHP_Depend version from its PEAR channel: <a href="http://www.manuel-pichler.de/exit.php?url_id=2290&amp;entry_id=81" title="http://pear.pdepend.org"  onmouseover="window.status='http://pear.pdepend.org';return true;" onmouseout="window.status='';return true;">pear.pdepend.org</a>:
</p>
<pre>
  mapi@arwen ~ $ pear channel-discover pear.pdepend.org
  mapi@arwen ~ $ pear install pdepend/PHP_Depend-beta
</pre>
<p>
Or you can fetch the sources from the subversion reposition:
</p>
<pre>
  mapi@arwen ~ $ svn co http://svn.pdepend.org/branches/0.9.0/
</pre>
<p>
And additionally you can find a repository mirror on github:
</p>
<pre>
  mapi@arwen ~ $ git clone git://github.com/manuelpichler/pdepend.git
</pre> 
            </div>
        </content>
        <dc:subject>php</dc:subject>
<dc:subject>php5</dc:subject>
<dc:subject>php_depend</dc:subject>
<dc:subject>quality assurance</dc:subject>
<dc:subject>release announcement</dc:subject>
<dc:subject>software metrics</dc:subject>
<dc:subject>static code analysis</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/80-Talk-about-Software-Metrics-at-PHPUG-Cologne.html" rel="alternate" title="Talk about &quot;Software Metrics&quot; at PHPUG Cologne" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-02-04T07:48:00Z</published>
        <updated>2010-02-04T12:07:40Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=80</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=80</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
    
        <id>http://www.manuel-pichler.de/archives/80-guid.html</id>
        <title type="html">Talk about &quot;Software Metrics&quot; at PHPUG Cologne</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  This friday I will give my <a href="http://www.manuel-pichler.de/exit.php?url_id=2266&amp;entry_id=80" title="http://en.wikipedia.org/wiki/Software_metrics"  onmouseover="window.status='http://en.wikipedia.org/wiki/Software_metrics';return true;" onmouseout="window.status='';return true;">software metrics</a> introduction talk at the <a href="http://www.manuel-pichler.de/exit.php?url_id=2267&amp;entry_id=80" title="http://www.phpug.de/index_ka11.php"  onmouseover="window.status='http://www.phpug.de/index_ka11.php';return true;" onmouseout="window.status='';return true;">PHP User Group Cologne</a>. The talk covers several aspects of static code analysis. Starting with classic <a href="http://www.manuel-pichler.de/exit.php?url_id=2268&amp;entry_id=80" title="http://en.wikipedia.org/wiki/Source_lines_of_code"  onmouseover="window.status='http://en.wikipedia.org/wiki/Source_lines_of_code';return true;" onmouseout="window.status='';return true;">count</a> and <a href="http://www.manuel-pichler.de/exit.php?url_id=2269&amp;entry_id=80" title="http://en.wikipedia.org/wiki/Cyclomatic_complexity"  onmouseover="window.status='http://en.wikipedia.org/wiki/Cyclomatic_complexity';return true;" onmouseout="window.status='';return true;">complexity</a> metrics, up to modern metrics, which are used for tracking the dependencies and <a href="http://www.manuel-pichler.de/exit.php?url_id=2270&amp;entry_id=80" title="http://en.wikipedia.org/wiki/Coupling_%28computer_science%29"  onmouseover="window.status='http://en.wikipedia.org/wiki/Coupling_%28computer_science%29';return true;" onmouseout="window.status='';return true;">coupling</a> in a modern OO-systems. 
</p>
<blockquote>
  <p>
In den letzten Jahren findet das Thema Qualitätsicherung immer stärkere Beachtung. Softwaremetriken spielen hierbei eine wichtige Rolle, denn diese statischen Kennzahlen helfen ein Projekt zu überschauen und Schwachstellen frühzeitig aufzudecken. Diese Session gibt einen Überblick über existierende Metriken, Kombinationen und deren Verwendung als Werkzeug zur Qualitätsicherung.
  </p>
</blockquote>
<p>
  I hope this talk will inspire some of the listerners, how software metrics can be used to improve the quality of their software projects.
</p>

<p>
The talk will take place at:
</p>

<ul>
<li>February 5th, 2010</li>
<li>From 20:00 to 22:00</li>
<li>Mediapark 5, 50670 Cologne</li>
<li>(Offices of <a href="http://www.manuel-pichler.de/exit.php?url_id=2271&amp;entry_id=80" title="http://www.papaya-cms.com/"  onmouseover="window.status='http://www.papaya-cms.com/';return true;" onmouseout="window.status='';return true;">papaya Software GmbH</a>)</li>
</ul>

<p>
Looking forward to meet you there.
</p> 
            </div>
        </content>
        <dc:subject>cologne</dc:subject>
<dc:subject>phpug</dc:subject>
<dc:subject>software metrics</dc:subject>
<dc:subject>static code analysis</dc:subject>
<dc:subject>talks</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/79-phpUnderControl-0.5.1-released.html" rel="alternate" title="phpUnderControl 0.5.1 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-01-31T20:16:35Z</published>
        <updated>2010-02-01T04:52:52Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=79</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=79</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/10-phpundercontrol" label="phpundercontrol" term="phpundercontrol" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/79-guid.html</id>
        <title type="html">phpUnderControl 0.5.1 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today I have released <a href="http://www.manuel-pichler.de/exit.php?url_id=2246&amp;entry_id=79" title="http://phpundercontrol.org"  onmouseover="window.status='http://phpundercontrol.org';return true;" onmouseout="window.status='';return true;">phpUnderControl</a> version <a href="http://www.manuel-pichler.de/exit.php?url_id=2247&amp;entry_id=79" title="http://github.com/manuelpichler/phpUnderControl/tree/0.5.1"  onmouseover="window.status='http://github.com/manuelpichler/phpUnderControl/tree/0.5.1';return true;" onmouseout="window.status='';return true;">0.5.1</a>. It's a bug fix release that closes several issues open since a long time. First of all I would like to thank <a href="http://www.manuel-pichler.de/exit.php?url_id=2248&amp;entry_id=79" title="http://twitter.com/proofek"  onmouseover="window.status='http://twitter.com/proofek';return true;" onmouseout="window.status='';return true;">Sebastian Marek</a> who was the main contributor to this releases, so a big thankyou to you.
</p>

<ul>
  <li>Now phpUnderControl should work with <a href="http://www.manuel-pichler.de/exit.php?url_id=2265&amp;entry_id=79" title="http://cruisecontrol.sourceforge.net"  onmouseover="window.status='http://cruisecontrol.sourceforge.net';return true;" onmouseout="window.status='';return true;">CruiseControl 2.8.3</a>. Thanks to Mike van Riel who provided some hints on this issue in a <a href="http://www.manuel-pichler.de/exit.php?url_id=2249&amp;entry_id=79" title="http://manuel-pichler.de/archives/69-phpUnderControl-0.5.0-released.html#c350"  onmouseover="window.status='http://manuel-pichler.de/archives/69-phpUnderControl-0.5.0-released.html#c350';return true;" onmouseout="window.status='';return true;">blog comment</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2250&amp;entry_id=79" title="http://www.phpunit.de/ticket/983"  onmouseover="window.status='http://www.phpunit.de/ticket/983';return true;" onmouseout="window.status='';return true;">#983</a>: Graph unitests throw fatal error when ezComponents not available.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2251&amp;entry_id=79" title="http://www.phpunit.de/ticket/966"  onmouseover="window.status='http://www.phpunit.de/ticket/966';return true;" onmouseout="window.status='';return true;">#966</a>: phpcs-details.xsl not showing file name.</li>
  <li>Closed <a href="http://www.manuel-pichler.de/exit.php?url_id=2252&amp;entry_id=79" title="http://www.phpunit.de/ticket/863"  onmouseover="window.status='http://www.phpunit.de/ticket/863';return true;" onmouseout="window.status='';return true;">#863</a>: Destination option is now deprecated.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2253&amp;entry_id=79" title="http://www.phpunit.de/ticket/862"  onmouseover="window.status='http://www.phpunit.de/ticket/862';return true;" onmouseout="window.status='';return true;">#862</a>: Command line switches without parameter don't work.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2254&amp;entry_id=79" title="http://www.phpunit.de/ticket/861"  onmouseover="window.status='http://www.phpunit.de/ticket/861';return true;" onmouseout="window.status='';return true;">#861</a>: Password is used as username in check outs. This patch was supplied by Thorsten Daners via e-mail.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2255&amp;entry_id=79" title="http://www.phpunit.de/ticket/734"  onmouseover="window.status='http://www.phpunit.de/ticket/734';return true;" onmouseout="window.status='';return true;">#734</a>: Now the build dropdown redirects to the correct build uri.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2256&amp;entry_id=79" title="http://www.phpunit.de/ticket/703"  onmouseover="window.status='http://www.phpunit.de/ticket/703';return true;" onmouseout="window.status='';return true;">#703</a>: PHPUnit test results are now the first entry on the project overview page.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2257&amp;entry_id=79" title="http://www.phpunit.de/ticket/700"  onmouseover="window.status='http://www.phpunit.de/ticket/700';return true;" onmouseout="window.status='';return true;">#700</a>: Throw an exception when the specified project does not exist.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2258&amp;entry_id=79" title="http://www.phpunit.de/ticket/675"  onmouseover="window.status='http://www.phpunit.de/ticket/675';return true;" onmouseout="window.status='';return true;">#675</a>: Use "php -l" for lint checking and not PHPUnit.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2259&amp;entry_id=79" title="http://www.phpunit.de/ticket/625"  onmouseover="window.status='http://www.phpunit.de/ticket/625';return true;" onmouseout="window.status='';return true;">#625</a>: Integrate PHP_Depend results.</li>
</ul>

<br />
<p>
  Beside the new release some more things have changed. From now on the phpUnderControl development is hosted on <a href="http://www.manuel-pichler.de/exit.php?url_id=2260&amp;entry_id=79" title="http://github.com"  onmouseover="window.status='http://github.com';return true;" onmouseout="window.status='';return true;">github</a>. This means that from now on the latest version of phpUnderControl can be obtained with the following command:
</p>

<pre>
mapi@arwen ~ $ git clone \
               git://github.com/manuelpichler/phpUnderControl.git
</pre>

<p>
Additionally we have moved the phpUnderControl's PEAR Channel Server from <a href="http://www.manuel-pichler.de/exit.php?url_id=2261&amp;entry_id=79" title="http://pear.phpunit.de"  onmouseover="window.status='http://pear.phpunit.de';return true;" onmouseout="window.status='';return true;">pear.phpunit.de</a> to its own server <a href="http://www.manuel-pichler.de/exit.php?url_id=2262&amp;entry_id=79" title="http://pear.phpundercontrol.org"  onmouseover="window.status='http://pear.phpundercontrol.org';return true;" onmouseout="window.status='';return true;">pear.phpundercontrol.org</a>. At this point I would like to thank <a href="http://www.manuel-pichler.de/exit.php?url_id=2263&amp;entry_id=79" title="http://sebastian-bergmann.de/"  onmouseover="window.status='http://sebastian-bergmann.de/';return true;" onmouseout="window.status='';return true;">Sebastian</a> for providing phpUnderControl's infrastructure under the <a href="http://www.manuel-pichler.de/exit.php?url_id=2264&amp;entry_id=79" title="http://phpun.it"  onmouseover="window.status='http://phpun.it';return true;" onmouseout="window.status='';return true;">PHPUnit umbrella</a> for the last three years.
</p>

<pre>
mapi@arwen ~ $ pear uninstall phpunit/phpUnderControl
mapi@arwen ~ $ pear channel-discover pear.phpundercontrol.org
mapi@arwen ~ $ pear install --alldeps phpuc/phpUnderControl-beta
Starting to download phpUnderControl-0.5.1.tgz (539,717 bytes)
..........................................done: 539,717 bytes
install ok: channel://pear.phpundercontrol.org/phpUnderControl-0.5.1
</pre> 
            </div>
        </content>
        <dc:subject>ant</dc:subject>
<dc:subject>bug fix</dc:subject>
<dc:subject>continuous integration</dc:subject>
<dc:subject>phpundercontrol</dc:subject>
<dc:subject>release announcement</dc:subject>
<dc:subject>sebastian marek</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/78-PHPMD-wednesday...-PHPMD-0.2.2,-PHPMD-Ant-Task,-PHPMD-on-GitHub.html" rel="alternate" title="PHPMD wednesday... PHPMD 0.2.2, PHPMD Ant Task, PHPMD on GitHub" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-01-20T20:11:56Z</published>
        <updated>2010-01-24T09:00:51Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=78</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=78</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/13-phpmd" label="phpmd" term="phpmd" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/78-guid.html</id>
        <title type="html">PHPMD wednesday... PHPMD 0.2.2, PHPMD Ant Task, PHPMD on GitHub</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today I have released <a href="http://www.manuel-pichler.de/exit.php?url_id=2239&amp;entry_id=78" title="http://phpmd.org/download/index.html"  onmouseover="window.status='http://phpmd.org/download/index.html';return true;" onmouseout="window.status='';return true;">PHPMD 0.2.2</a>, a minor bug fix release that solves some exit code issues in the previous version. Beside this, I am proud to announce the first release of the <a href="http://www.manuel-pichler.de/exit.php?url_id=2240&amp;entry_id=78" title="http://phpmd.org/documentation/ant-task.html"  onmouseover="window.status='http://phpmd.org/documentation/ant-task.html';return true;" onmouseout="window.status='';return true;">PHPMD Ant Task</a>. It allows a seamless integration of <a href="http://www.manuel-pichler.de/exit.php?url_id=2241&amp;entry_id=78" title="http://phpmd.org/"  onmouseover="window.status='http://phpmd.org/';return true;" onmouseout="window.status='';return true;">PHPMD</a> into your <a href="http://www.manuel-pichler.de/exit.php?url_id=2242&amp;entry_id=78" title="http://ant.apache.org"  onmouseover="window.status='http://ant.apache.org';return true;" onmouseout="window.status='';return true;">Ant</a> build.xml file. So, please download the PHPMD Ant Task, test it and file bug reports or feature requests in PHPMD's <a href="http://www.manuel-pichler.de/exit.php?url_id=2243&amp;entry_id=78" title="http://tracker.pdepend.org/php_mess_detector/"  onmouseover="window.status='http://tracker.pdepend.org/php_mess_detector/';return true;" onmouseout="window.status='';return true;">issue tracker</a>.
</p>

<p>
  You can get the latest PHPMD version from its PEAR channel: <a href="http://www.manuel-pichler.de/exit.php?url_id=2244&amp;entry_id=78" title="http://pear.phpmd.org"  onmouseover="window.status='http://pear.phpmd.org';return true;" onmouseout="window.status='';return true;">pear.phpmd.org</a> 
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear channel-discover pear.phpmd.org
mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alpha
</pre>

<p>
  Beside this two releases there is an additional news. From now on you can find an up-2-date mirror of PHPMD's subversion repository on <a href="http://www.manuel-pichler.de/exit.php?url_id=2245&amp;entry_id=78" title="http://github.com/manuelpichler/phpmd"  onmouseover="window.status='http://github.com/manuelpichler/phpmd';return true;" onmouseout="window.status='';return true;">github</a>, so that you can fork PHPMD and participate on in development on these days social coding plattform. 
</p>

<pre>
mapi@arwen ~ $ git clone git://github.com/manuelpichler/phpmd.git
</pre> 
            </div>
        </content>
        <dc:subject>ant</dc:subject>
<dc:subject>git</dc:subject>
<dc:subject>github</dc:subject>
<dc:subject>phpmd</dc:subject>
<dc:subject>release announcement</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/77-PHP-Mess-Detector-0.2.1-released.html" rel="alternate" title="PHP Mess Detector 0.2.1 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-01-05T21:31:00Z</published>
        <updated>2010-01-05T21:32:02Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=77</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=77</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/13-phpmd" label="phpmd" term="phpmd" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/77-guid.html</id>
        <title type="html">PHP Mess Detector 0.2.1 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  This is just a small bugfix release of PHPMD. It introduces a small new feature that enables PHPMD's command line tool to handle multiple input files. This feature was required for some upcoming external features and extensions. Since version 0.2.1 you can call the command line tool of PHPMD with multiple input files and/or directories, separated by comma.
</p>

<pre>
mapi@arwen ~ $ phpmd phpmd,systemDaemon text unusedcode
</pre>

<p>
  You can get the latest PHPMD version from its PEAR channel: <a href="http://www.manuel-pichler.de/exit.php?url_id=2238&amp;entry_id=77" title="http://pear.phpmd.org"  onmouseover="window.status='http://pear.phpmd.org';return true;" onmouseout="window.status='';return true;">pear.phpmd.org</a> 
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear channel-discover pear.phpmd.org
mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alpha
</pre> 
            </div>
        </content>
        <dc:subject>bug fix</dc:subject>
<dc:subject>cli</dc:subject>
<dc:subject>phpmd</dc:subject>
<dc:subject>pmd</dc:subject>
<dc:subject>release announcement</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/76-staticReflection-0.1.4-released.html" rel="alternate" title="staticReflection 0.1.4 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2010-01-02T22:38:06Z</published>
        <updated>2010-01-02T22:55:51Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=76</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=76</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
            <category scheme="http://www.manuel-pichler.de/categories/12-staticReflection" label="staticReflection" term="staticReflection" />
    
        <id>http://www.manuel-pichler.de/archives/76-guid.html</id>
        <title type="html">staticReflection 0.1.4 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today I have released version 0.1.4 of the staticReflection component. This release contains two critical bug fixes.
</p>

<ul>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2232&amp;entry_id=76" title="http://tracker.pdepend.org/static_reflection/issue_tracker/issue/5"  onmouseover="window.status='http://tracker.pdepend.org/static_reflection/issue_tracker/issue/5';return true;" onmouseout="window.status='';return true;">#5</a>: Filenames not normalized from relative to absolute paths. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2233&amp;entry_id=76" title="http://tracker.pdepend.org/static_reflection/browse_code/revision/259"  onmouseover="window.status='http://tracker.pdepend.org/static_reflection/browse_code/revision/259';return true;" onmouseout="window.status='';return true;">#259</a>.</li>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2234&amp;entry_id=76" title="http://tracker.pdepend.org/static_reflection/issue_tracker/issue/6"  onmouseover="window.status='http://tracker.pdepend.org/static_reflection/issue_tracker/issue/6';return true;" onmouseout="window.status='';return true;">#6</a>: Queries do not hold references to previous parsed classes and interfaces. Fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2235&amp;entry_id=76" title="http://tracker.pdepend.org/static_reflection/browse_code/revision/269"  onmouseover="window.status='http://tracker.pdepend.org/static_reflection/browse_code/revision/269';return true;" onmouseout="window.status='';return true;">#269</a>.</li>
</ul>
<br />
<p>
  You can get the latest stable version of the staticReflection component through its <a href="http://www.manuel-pichler.de/exit.php?url_id=2237&amp;entry_id=76" title="http://pdepend.org"  onmouseover="window.status='http://pdepend.org';return true;" onmouseout="window.status='';return true;">PHP_Depend's</a> PEAR channel:
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear install pdepend/staticReflection-alpha
</pre>

<p>
  or you can download the latest version from the staticReflection svn respository:
</p>

<pre>
mapi@arwen ~ $ svn co http://svn.reflection.pdepend.org/trunk \
                      staticReflection
</pre>
 
            </div>
        </content>
        <dc:subject>php5</dc:subject>
<dc:subject>release announcement</dc:subject>
<dc:subject>static_reflection</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/73-PHP-Mess-Detector-0.2-released..html" rel="alternate" title="PHP Mess Detector 0.2 released." />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-12-29T22:40:00Z</published>
        <updated>2009-12-30T16:45:15Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=73</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=73</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/13-phpmd" label="phpmd" term="phpmd" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/73-guid.html</id>
        <title type="html">PHP Mess Detector 0.2 released.</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today I have released version 0.2.0 of the <a href="http://www.manuel-pichler.de/exit.php?url_id=2211&amp;entry_id=73" title="http://phpmd.org"  onmouseover="window.status='http://phpmd.org';return true;" onmouseout="window.status='';return true;">PHP Mess Detector</a> or short <em>PHPMD</em>. PHPMD is a simple, customizable and user friendly frontend application for <a href="http://www.manuel-pichler.de/exit.php?url_id=2212&amp;entry_id=73" title="http://pdepend.org"  onmouseover="window.status='http://pdepend.org';return true;" onmouseout="window.status='';return true;">PHP_Depend</a>. It takes the raw metrics measured by PHP_Depend, compares them with appropriate thresholds and generates a report that lists those software artifacts with potential problems. Such a report can be taken as a basis for human code audits or you can use it as input for an automated build/reporting tool.
</p>

<p>
  Most concepts behind PHPMD are based on those of the well known Java Tool <a href="http://www.manuel-pichler.de/exit.php?url_id=2213&amp;entry_id=73" title="http://pmd.sourceforge.net"  onmouseover="window.status='http://pmd.sourceforge.net';return true;" onmouseout="window.status='';return true;">PMD</a>. It uses so called rule set files to organize different sets of rules. There are two purposes that are accomplished by these xml files. The first is to create custom sets of rules which fulfills the projects requirements. The second purpose is the configuration of each rule with thresholds, warning messages and other things. The format of these files is totally borrowed from PMD, so that the reuse existing rule sets in multi language environments should be easy. At the moment PHPMD has two build-in rule sets. One that detects software artifacts with high code size, and the second one detects unused code in your software.
</p>

<p>
  Now lets start with a small <em>How to use it</em>. PHPMD can be called from the command line by typing <code>phpmd</code>, which prints a general help text.
</p>

<pre>
mapi@arwen ~ $ phpmd 
Mandatory arguments:
1) A php source code filename or directory
2) A report format
3) A ruleset filename or a comma-separated string of ...

Optional arguments that may be put after the mandato...
--minimumpriority: rule priority threshold; rules with ...
--reportfile: send report output to a file; default to ...
--extensions: comma-separated string of valid source ...
--ignore: comma-separated string of patterns that are ...
</pre>

<p>
  Now let's call PHPMD on its own source, with a simple text report on STDOUT and the <code>codesize</code> ruleset:
</p>

<pre>
mapi@arwen ~ $ phpmd ~/phpmd/source text codesize

/home/mapi/phpmd/source/PHP/PMD/RuleSetFactory.php:66 \
  This class has too many methods, consider refactoring it.
/home/mapi/phpmd/source/PHP/PMD/RuleSetFactory.php:267 \
  The method _parseSingleRuleNode() has a Cyclomatic \
  Complexity of 11.
/home/mapi/phpmd/source/PHP/PMD/RuleSetFactory.php:326 \
  The method _parseRuleReferenceNode() has a Cyclomatic \
  Complexity of 10.
</pre>

<p>
  The <code>--reportfile</code> option can be used, to redirect the report output into a file. So let us repeat the previous example that writes the report into a file, additionally uses the <code>unusedcode</code> rule and changes the format from text to xml.
</p>

<pre>
mapi@arwen ~ $ phpmd ~/phpmd/source xml codesize,unusedcode \
  --reportfile ~/pmd.xml
mapi@arwen ~ $ cat ~/pmd.xml 
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;pmd version="@package_version@" timestamp="..."&gt;
  &lt;file name=".../source/PHP/PMD/RuleSetFactory.php"&gt;
    &lt;violation beginline="66" endline="417" rule="TooManyMet ...&gt;
      This class has too many methods, consider refactoring it.
    &lt;/violation&gt;
    &lt;violation beginline="267" endline="315" rule="Cyclomati ...&gt;
      Method _parseSingleRule() has a Cyclomatic Complexity of 11.
    &lt;/violation&gt;
    &lt;violation beginline="326" endline="367" rule="Cyclomati ...&gt;
      Method _parseRuleReference() has a Cyclomatic Complexity of 10.
    &lt;/violation&gt;
  &lt;/file&gt;
&lt;/pmd&gt;
</pre>

<p>
  This xml file is compatible with those files generated by <a href="http://www.manuel-pichler.de/exit.php?url_id=2213&amp;entry_id=73" title="http://pmd.sourceforge.net"  onmouseover="window.status='http://pmd.sourceforge.net';return true;" onmouseout="window.status='';return true;">PMD</a> and <a href="http://www.manuel-pichler.de/exit.php?url_id=2219&amp;entry_id=73" title="http://phpunit.de"  onmouseover="window.status='http://phpunit.de';return true;" onmouseout="window.status='';return true;">PHPUnit's</a> deprecated <code>--log-pmd</code> option. So that it should be no problem to use this files in existing environments like <a href="http://www.manuel-pichler.de/exit.php?url_id=2215&amp;entry_id=73" title="https://hudson.dev.java.net/"  onmouseover="window.status='https://hudson.dev.java.net/';return true;" onmouseout="window.status='';return true;">Hudson</a>, <a href="http://www.manuel-pichler.de/exit.php?url_id=2216&amp;entry_id=73" title="http://cruisecontrol.sourceforge.net/"  onmouseover="window.status='http://cruisecontrol.sourceforge.net/';return true;" onmouseout="window.status='';return true;">CruiseControl</a> or <a href="http://www.manuel-pichler.de/exit.php?url_id=2217&amp;entry_id=73" title="http://sonar.codehaus.org/"  onmouseover="window.status='http://sonar.codehaus.org/';return true;" onmouseout="window.status='';return true;">Sonar</a>.
</p>

<p>
  Currently PHPMD supports the following three different report formats: Text, HTML and XML. And it has the build-in rule sets: <code>codesize</code> and <code>unusedcode</code>.
</p>

<p>
  You can get the latest PHPMD version from its PEAR channel: <a href="http://www.manuel-pichler.de/exit.php?url_id=2218&amp;entry_id=73" title="http://pear.phpmd.org"  onmouseover="window.status='http://pear.phpmd.org';return true;" onmouseout="window.status='';return true;">pear.phpmd.org</a> 
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear channel-discover pear.phpmd.org
mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alpha
</pre> 
            </div>
        </content>
        <dc:subject>phpmd</dc:subject>
<dc:subject>php_depend</dc:subject>
<dc:subject>pmd</dc:subject>
<dc:subject>quality assurance</dc:subject>
<dc:subject>static code analysis</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/71-PHP_Depend-0.9.9-released.html" rel="alternate" title="PHP_Depend-0.9.9 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-12-26T22:26:37Z</published>
        <updated>2009-12-26T22:26:37Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=71</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/71-guid.html</id>
        <title type="html">PHP_Depend-0.9.9 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  I have just released the bug fix version 0.9.9 of PHP_Depend.
</p>

<ul>
  <li>Fixed <a href="http://www.manuel-pichler.de/exit.php?url_id=2207&amp;entry_id=71" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/108"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/108';return true;" onmouseout="window.status='';return true;">#108</a>: Parser doesn't set start/end line/column on variables, fixed in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2208&amp;entry_id=71" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1015"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1015';return true;" onmouseout="window.status='';return true;">#1015</a>.</li>
  <li>Implemented <a href="http://www.manuel-pichler.de/exit.php?url_id=2209&amp;entry_id=71" title="http://tracker.pdepend.org/pdepend/issue_tracker/issue/104"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/issue_tracker/issue/104';return true;" onmouseout="window.status='';return true;">#104</a>: Add isStatic() method on ASTMemberPrimaryPrefix node, implemented in svn revision <a href="http://www.manuel-pichler.de/exit.php?url_id=2210&amp;entry_id=71" title="http://tracker.pdepend.org/pdepend/browse_code/revision/1013"  onmouseover="window.status='http://tracker.pdepend.org/pdepend/browse_code/revision/1013';return true;" onmouseout="window.status='';return true;">#1013</a>.</li>
</ul>

<br />
<p>
   You can get the latest PHP_Depend version from its PEAR channel: pear.pdepend.org 
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear install pdepend/PHP_Depend-beta
</pre> 
            </div>
        </content>
        <dc:subject>bug fix</dc:subject>
<dc:subject>php_depend</dc:subject>
<dc:subject>release announcement</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/70-PHP_Depend-0.9.8-released.html" rel="alternate" title="PHP_Depend-0.9.8 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-12-14T16:21:00Z</published>
        <updated>2009-12-14T16:23:39Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=70</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/70-guid.html</id>
        <title type="html">PHP_Depend-0.9.8 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Today I released PHP_Depend 0.9.8, which contains many bug fixes and improvements. This release will be the base version for a new tool called <a href="http://tracker.pdepend.org/php_mess_detector/browse_code">PHPMD</a>. PHPMD is a frontend that reports critical and suspect software artifacts in a project, based on the metrics measured with PHP_Depend. It aims to be a PHP equivalent to the well known java tool <a href="http://pmd.sourceforge.net/">PMD</a>.
</p>

<ul>
  <li>Closed <a href="http://tracker.pdepend.org/pdepend/issue_tracker/issue/93">#93</a>: Implement an assignment expression, Implemented in svn revision <a href="http://tracker.pdepend.org/pdepend/browse_code/revision/992">#992</a>.</li>
  <li>Fixed <a href="http://tracker.pdepend.org/pdepend/issue_tracker/issue/94">#94</a>: Parser throws exception for closures that return by reference, fixed in svn revision <a href="http://tracker.pdepend.org/pdepend/browse_code/revision/962">#962</a>.</li>
  <li>Fixed <a href="http://tracker.pdepend.org/pdepend/issue_tracker/issue/98">#98</a>: Functions with an invalid signature result in an inconsistent object graph, fixed in svn revision <a href="http://tracker.pdepend.org/pdepend/browse_code/revision/986">#986</a>.</li>
  <li>Fixed <a href="http://tracker.pdepend.org/pdepend/issue_tracker/issue/102">#102</a>: Namespace keyword in type-hint is broken, fixed in svn revision <a href="http://tracker.pdepend.org/pdepend/browse_code/revision/1010">#1010</a>.</li>
  <li>Fixed <a href="http://tracker.pdepend.org/pdepend/issue_tracker/issue/103">#103</a>: The parser does not handle all strings as parameter default value correct, fixed in svn revision <a href="http://tracker.pdepend.org/pdepend/browse_code/revision/1009">#1009</a>.</li>
</ul>

<br />
<p>
   You can get the latest PHP_Depend version from its PEAR channel: pear.pdepend.org 
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear install pdepend/PHP_Depend-beta
</pre>

 
            </div>
        </content>
        <dc:subject>bug fix</dc:subject>
<dc:subject>phpmd</dc:subject>
<dc:subject>php_depend</dc:subject>
<dc:subject>pmd</dc:subject>
<dc:subject>release announcement</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/69-phpUnderControl-0.5.0-released.html" rel="alternate" title="phpUnderControl 0.5.0 released" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-12-06T14:16:00Z</published>
        <updated>2009-12-13T09:06:51Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=69</wfw:comment>
    
        <slash:comments>25</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=69</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/10-phpundercontrol" label="phpundercontrol" term="phpundercontrol" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
    
        <id>http://www.manuel-pichler.de/archives/69-guid.html</id>
        <title type="html">phpUnderControl 0.5.0 released</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  After quite some time of silence around <a href="http://www.manuel-pichler.de/exit.php?url_id=2194&amp;entry_id=69" title="http://php-under-control.org"  onmouseover="window.status='http://php-under-control.org';return true;" onmouseout="window.status='';return true;">phpUnderControl</a> I have bundled the 0.5.0 release today. Beside minor changes, bugfixes and enhancements this release contains one new major feature, the <a href="http://www.manuel-pichler.de/exit.php?url_id=2182&amp;entry_id=69" title="http://www.phpunit.de/browser/phpcb/trunk"  onmouseover="window.status='http://www.phpunit.de/browser/phpcb/trunk';return true;" onmouseout="window.status='';return true;">PHP_CodeBrowser</a>.
</p>

<div class="serendipity_imageComment_center" style="width: 400px"><div class="serendipity_imageComment_img"><a class='serendipity_image_link' href='http://www.manuel-pichler.de/uploads/phpUnderControl/php-under-contro-and-php-code-browser.png'><!-- s9ymdb:60 --><img class="serendipity_image_center" width="400" src="http://www.manuel-pichler.de/uploads/phpUnderControl/php-under-contro-and-php-code-browser.png" alt=""  /></a></div><div class="serendipity_imageComment_txt">phpUnderControl integrating PHP_CodeBrowser</div></div>

<p>
  The <a href="http://www.manuel-pichler.de/exit.php?url_id=2182&amp;entry_id=69" title="http://www.phpunit.de/browser/phpcb/trunk"  onmouseover="window.status='http://www.phpunit.de/browser/phpcb/trunk';return true;" onmouseout="window.status='';return true;">PHP_CodeBrowser</a> is a separate application that collects various XML log files with different project metrics/violations and presents them in a browseable source view with syntax highligting. This tool is a contribution by the <a href="http://www.manuel-pichler.de/exit.php?url_id=2184&amp;entry_id=69" title="http://www.mayflower.de/"  onmouseover="window.status='http://www.mayflower.de/';return true;" onmouseout="window.status='';return true;">Mayflower GmbH</a>, where it was developed and now shared with the Open Source Community. At this point I would like to thank Mayflower as a whole and in particular at <a href="http://www.manuel-pichler.de/exit.php?url_id=2185&amp;entry_id=69" title="http://blog.thinkphp.de/archives/464-PHP_CodeBrowser-Release-version-0.1.0.html"  onmouseover="window.status='http://blog.thinkphp.de/archives/464-PHP_CodeBrowser-Release-version-0.1.0.html';return true;" onmouseout="window.status='';return true;">Elger</a> and <a href="http://www.manuel-pichler.de/exit.php?url_id=2186&amp;entry_id=69" title="http://phpmyfaq.de/"  onmouseover="window.status='http://phpmyfaq.de/';return true;" onmouseout="window.status='';return true;">Thorsten</a>, which were responsible for all technical aspects of this contribution.
</p>

<p>
  To use the PHP_CodeBrowser you must add an additional <a href="http://www.manuel-pichler.de/exit.php?url_id=2187&amp;entry_id=69" title="http://cruisecontrol.sourceforge.net/main/configxml.html#execute"  onmouseover="window.status='http://cruisecontrol.sourceforge.net/main/configxml.html#execute';return true;" onmouseout="window.status='';return true;">execute publisher</a> to your <a href="http://www.manuel-pichler.de/exit.php?url_id=2188&amp;entry_id=69" title="http://cruisecontrol.sourceforge.net"  onmouseover="window.status='http://cruisecontrol.sourceforge.net';return true;" onmouseout="window.status='';return true;">CruiseControl</a> <a href="http://www.manuel-pichler.de/exit.php?url_id=2189&amp;entry_id=69" title="http://cruisecontrol.sourceforge.net/main/configxml.html"  onmouseover="window.status='http://cruisecontrol.sourceforge.net/main/configxml.html';return true;" onmouseout="window.status='';return true;">config.xml</a> file that generates the PHP_CodeBrowser html report and an additional <a href="http://www.manuel-pichler.de/exit.php?url_id=2190&amp;entry_id=69" title="http://cruisecontrol.sourceforge.net/main/configxml.html#artifactspublisher"  onmouseover="window.status='http://cruisecontrol.sourceforge.net/main/configxml.html#artifactspublisher';return true;" onmouseout="window.status='';return true;">artifacts publisher</a> to move the generated PHP_CodeBrowser report into the projects artifacts directory. 
</p>

<pre>
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;cruisecontrol&gt;
  &lt;!-- ... --&gt;
  &lt;project name="PHP_Depend" buildafterfailed="false"&gt;
    &lt;!-- ... --&gt;
    &lt;publishers&gt;
      &lt;!-- ... --&gt;
      &lt;execute command="phpcb 
        --log projects/${project.name}/build/logs 
        --source projects/${project.name}/source/PHP 
        --output projects/${project.name}/build/php-code-browser"/&gt;
      &lt;artifactspublisher 
        dir="projects/${project.name}/build/php-code-browser" 
        dest="artifacts/${project.name}" 
        subdirectory="php-code-browser"/&gt;
      &lt;!-- ... --&gt;
    &lt;/publishers&gt;
  &lt;/project&gt;
&lt;/cruisecontrol&gt;
</pre>

<p>
  But why do we use a CruiseControl <a href="http://www.manuel-pichler.de/exit.php?url_id=2191&amp;entry_id=69" title="http://cruisecontrol.sourceforge.net/main/configxml.html#publishers"  onmouseover="window.status='http://cruisecontrol.sourceforge.net/main/configxml.html#publishers';return true;" onmouseout="window.status='';return true;">publishers</a> instead of a regular ant <em>(Your build tool here)</em> <a href="http://www.manuel-pichler.de/exit.php?url_id=2192&amp;entry_id=69" title="http://ant.apache.org/manual/using.html#targets"  onmouseover="window.status='http://ant.apache.org/manual/using.html#targets';return true;" onmouseout="window.status='';return true;">target</a>? The answer is really simple. The PHP_CodeBrowser must be the very last artifact generated for a project, which means it must also run after PHPUnit, to collect the test result logs. But in most setups PHPUnit is configured with <code>failonerror="on"</code> to mark a build as failed, when an error occured during the test execution. But with this configuration a following PHP_CodeBrowser target would never be executed by <a href="http://www.manuel-pichler.de/exit.php?url_id=2193&amp;entry_id=69" title="http://ant.apache.org/"  onmouseover="window.status='http://ant.apache.org/';return true;" onmouseout="window.status='';return true;">ant</a>, because the build failed already. This cannot happen with a CruiseControl publisher which is always executed in a separated process.
</p>

<p>
  If you create a new project with phpUnderControl's <code>project</code> command, phpUnderControl will automatically search for an installed PHP_CodeBrowser and add the required publishers to your <code>config.xml</code> file when it is present.
</p>

<pre>
mapi@arwen ~ $ phpuc project \
       --project-name PHP_Depend \
       --source-dir PHP \
       --test-case PHP_Depend_AllTests \
       --test-dir tests \
       --test-file PHP/Depend/AllTests.php \
       --version-control svn \
       --version-control-url http://svn.pdepend.org/branches/0.9.0 \
       /opt/cruisecontrol/cruisecontrol-bin-2.8.2
</pre>

<p>
  To get the latest version of phpUnderControl, you can use the PEAR-Channel-Server:
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.phpunit.de
mapi@arwen ~ $ pear install phpunit/phpUnderControl-beta
</pre>

<p>
  or you can check it out from the subversion repository:
</p>

<pre>
mapi@arwen ~ $ svn co svn://phpunit.de/phpunit/phpUnderControl/trunk
</pre> 
            </div>
        </content>
        <dc:subject>elger</dc:subject>
<dc:subject>mayflower</dc:subject>
<dc:subject>phpundercontrol</dc:subject>
<dc:subject>php_codebrowser</dc:subject>
<dc:subject>release announcement</dc:subject>
<dc:subject>thorsten</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/68-First-release-of-the-staticReflection-component..html" rel="alternate" title="First release of the staticReflection component." />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-11-29T20:45:00Z</published>
        <updated>2009-12-06T21:08:59Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=68</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=68</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
            <category scheme="http://www.manuel-pichler.de/categories/9-projects" label="projects" term="projects" />
            <category scheme="http://www.manuel-pichler.de/categories/12-staticReflection" label="staticReflection" term="staticReflection" />
    
        <id>http://www.manuel-pichler.de/archives/68-guid.html</id>
        <title type="html">First release of the staticReflection component.</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today I have released the first version of the staticReflection component. This component parses the source files of a project to provide reflection information identical to that provided by <a href="http://php.net">PHP's</a> build in <a href="http://php.net/reflection">API</a>, without loading the class declaration into the PHP runtime context. Due to the API compatibility the staticReflection component can simply be used as a drop-in replacement for the reflection extension.
</p>

<p>
  A few weeks ago I started just another script that utilized the <a href="http://">tokenizer</a> extension to extract some information from source code files. At that point I thought that the time had come to realize a project that was on my todo for a very long time. And here is the result of the first iteration, a userland reflection implementation that is api compatible with PHP's internal reflection extension. Beside the source parser and the reflection ast this component provides a unified interface to both reflection versions, which makes it easy to switch between different implementations.
</p>

<p>
  As a first use case for this component I have choosen autoload files, as they are used by the <a href="http://ezcomponents.org">eZ Components</a>. The generation of those files is really easy, simply parse a directory with source files and dump the result into a file.
</p>

<pre>
&lt;?php
use org\pdepend\reflection\Autoloader;
use org\pdepend\reflection\ReflectionSession;

// Include the bundled autoloader
include_once 'staticReflection/Autoloader.php';

// Register the autoload function
spl_autoload_register( array( new Autoloader(), 'autoload' ) );

// Create a new session
$session = new ReflectionSession();

// Create a directory query
$query = $session-&gt;createDirectoryQuery(  );

$autoload = array();
foreach ( $query-&gt;find( __DIR__ . '/../../source/' ) as $class )
{
    $autoload[$class-&gt;getName()] = $class-&gt;getFileName();
}

var_export( $autoload ); 
</pre>

<p>
  You can also use the static reflection implementation to analyze different versions of the same class in the same process, which is not possible with the build-in reflection API, because you cannot load multiple classes with the same name into the current runtime context. 
</p>

<p>
  Beside parsing of a given directory or file the staticReflection component also supports direct access to a concrete class or interface through the name. Therefor it uses so called <a href="http://tracker.pdepend.org/static_reflection/browse_code/view/source/interfaces/SourceResolver.php">source resolvers</a>, that perform a mapping between class names and the associated source files. The current release has two build-in resolvers, one using autoload arrays as they are used by the <a href="http://ezcomponents.org">eZ Components</a> and the other one uses the <a href="http://pear.php.net/manual/en/standards.naming.php">PEAR naming conventions</a> and the configured include_paths to determine the source file for a given class name. The following example illustrates the usage of the <a href="http://tracker.pdepend.org/static_reflection/browse_code/view/source/resolvers/PearNamingResolver.php">PEAR source resolver</a>.
</p>

<pre>
&lt;?php
use org\pdepend\reflection\Autoloader;
use org\pdepend\reflection\ReflectionSession;
use org\pdepend\reflection\factories\StaticReflectionClassFactory;
use org\pdepend\reflection\resolvers\PearNamingResolver;

include_once 'staticReflection/Autoloader.php';

spl_autoload_register( array( new Autoloader(), 'autoload' ) );

$session = ReflectionSession::createStaticSession(
    new PearNamingResolver()
);

$class = $session-&gt;getClass( 'PEAR_Frontend' );
echo '- ', $class-&gt;getName(), PHP_EOL,
     '    ', $class-&gt;getFileName(), PHP_EOL;
</pre>

<p>
  This concept makes the component extremly flexible, because you can write your own source resolver that fulfills the requirements for your application.
</p>

<p>
  Beside the source resolver concept the <a href="http://tracker.pdepend.org/static_reflection/browse_code/view/source/ReflectionSession.php">ReflectionSession</a> can also be configured with a custom stack of <a href="http://tracker.pdepend.org/static_reflection/browse_code/view/source/interfaces/ReflectionClassFactory.php">ReflectionClassFactory</a> objects that are used to retrieve a reflection class instance for a given class/interface name. To minimize the configuration overhead for common use cases the <code>ReflectionSession</code> class provides three build-in factory methods that create default session configurations for you:
</p>

<ul>
  <li>
    <code>ReflectionSession::createDefaultSession( SourceResolver )</code>: This session configuration uses three different backends. First it asks the native backend for a reflection class. When this backend cannot handle the request the static reflection factory is asked for a matching class. Finally this configuration uses the <a href="http://tracker.pdepend.org/static_reflection/browse_code/view/source/factories/NullReflectionClassFactory.php">null backend</a>, which always returns an empty placeholder reflection class.<br /><br />
  </li>
  <li>
    <code>ReflectionSession::createStaticSession( SourceResolver )</code>: This session setup first asks the static reflection implementation for a matching reflection class and falls back to the null backend when no matching class exists.<br /><br />
  </li>
  <li>
    <code>ReflectionSession::createInternalSession()</code>: This factory method creates a session setup that is a simple wrapper around PHP's internal reflection api.<br /><br />
  </li>
</ul>
<br /><br />
<p>
  But you can always build your own session configuration with a custom factory stack, by calling the <code><a href="http://tracker.pdepend.org/static_reflection/browse_code/view/source/ReflectionSession.php#line160">ReflectionSession::addClassFactory()</a></code> method on the session instance.
</p>

<pre>
&lt;?php
use org\pdepend\reflection\Autoloader;
use org\pdepend\reflection\ReflectionSession;

include_once 'staticReflection/Autoloader.php';

spl_autoload_register( array( new Autoloader(), 'autoload' ) );

$session = new ReflectionSession();
$session-&gt;addClassFactory( new MyFooFactory() );
$session-&gt;addClassFactory( new MyBarFactory() );
</pre>

<p>
  So how can you use this cool component in your application? This is really simple, just replace all <code>ReflectionClass</code> instantiations with the following code:
</p>

<pre>
&lt;?php
// ...
// Previous instantiation
// $ref = new ReflectionClass( 'Foo_Bar_Baz' );

// New cool solution
$ref = ReflectionSessionInstance::get()-&gt;getClass( 'Foo_Bar_Baz' );
</pre>

<p>
  And add the following code to your bootstrap file:
</p>

<pre>
&lt;?php
// ...
ReflectionSessionInstance::set(
    ReflectionSession::createInternalSession()
);
</pre>

<p>
  Finally some words to the requirements and the installation of this component. This component requires PHP in a version greater or equal 5.3.0. For installation you can use <a href="http://pdepend.org">PHP_Depend's</a> PEAR channel:
</p>

<pre>
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear install pdepend/staticReflection-alpha
</pre>

<p>
  or you can download the latest version from the staticReflection svn respository:
</p>

<pre>
mapi@arwen ~ $ svn co http://svn.reflection.pdepend.org/trunk \
                      staticReflection
</pre>

<p>
  Feel free to test this component and file bug-reports and/or feature-requests in the <a href="http://tracker.pdepend.org/static_reflection/">project issue tracker</a>. 
</p> 
            </div>
        </content>
        <dc:subject>php</dc:subject>
<dc:subject>static code analysis</dc:subject>
<dc:subject>static_reflection</dc:subject>
<dc:subject>tools</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/67-PHP_Depend-PEAR-Channel-switched-to-Pirum.html" rel="alternate" title="PHP_Depend PEAR Channel switched to Pirum" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-11-28T13:00:23Z</published>
        <updated>2009-11-30T14:52:30Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=67</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=67</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
    
        <id>http://www.manuel-pichler.de/archives/67-guid.html</id>
        <title type="html">PHP_Depend PEAR Channel switched to Pirum</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today <a href="http://www.manuel-pichler.de/exit.php?url_id=2160&amp;entry_id=67" title="http://fabien.potencier.org/"  onmouseover="window.status='http://fabien.potencier.org/';return true;" onmouseout="window.status='';return true;">Fabien Potencier</a> <a href="http://www.manuel-pichler.de/exit.php?url_id=2165&amp;entry_id=67" title="http://fabien.potencier.org/article/38/pirum-the-simple-pear-channel-server-manager"  onmouseover="window.status='http://fabien.potencier.org/article/38/pirum-the-simple-pear-channel-server-manager';return true;" onmouseout="window.status='';return true;">announced</a> the first relase of the <a href="http://www.manuel-pichler.de/exit.php?url_id=2161&amp;entry_id=67" title="http://pear.php.net"  onmouseover="window.status='http://pear.php.net';return true;" onmouseout="window.status='';return true;">PEAR</a> Channel server <a href="http://www.manuel-pichler.de/exit.php?url_id=2162&amp;entry_id=67" title="http://pirum-project.org/"  onmouseover="window.status='http://pirum-project.org/';return true;" onmouseout="window.status='';return true;">Pirum</a>. The great benefit of this Channel server is that it provides a simple shell script to publish new PEAR package releases, a feature that I missed in the previously used <a href="http://www.manuel-pichler.de/exit.php?url_id=2163&amp;entry_id=67" title="http://pear.chiaraquartet.net/"  onmouseover="window.status='http://pear.chiaraquartet.net/';return true;" onmouseout="window.status='';return true;">Chiara PEAR Server</a>. Pirum will make it really easy to publish new package versions through a simple build script <img src="http://www.manuel-pichler.de/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />
</p>

<p>
  The setup was quick done, following the <a href="http://www.manuel-pichler.de/exit.php?url_id=2162&amp;entry_id=67" title="http://pirum-project.org/"  onmouseover="window.status='http://pirum-project.org/';return true;" onmouseout="window.status='';return true;">instructions</a> on the pirum website, and importing the existing package files worked like a charm. The only problem I encountered was that both channel server implementations use a different directory structure. Pirum stores all the XML descriptors under a directory named <i>/rest</i>, while my Chiara Server installation has used <i>/Chiara_PEAR_Server_REST</i>, so that a first call to <code>pear upgrade</code> resulted in the following error:
</p>

<pre>
manu@arwen ~ $ pear upgrade
Error getting channel info from pear.pdepend.org: \
File http://pear.pdepend.org:80/Chiara_PEAR_Server_REST/p/packages.xml \
not valid (received: HTTP/1.1 404 Not Found)
</pre>

<p>
  But a simple 301 redirect makes this software transition transparent for the <a href="http://www.manuel-pichler.de/exit.php?url_id=2166&amp;entry_id=67" title="http://pdepend.org"  onmouseover="window.status='http://pdepend.org';return true;" onmouseout="window.status='';return true;">PHP_Depend</a> users. So when you will also switch to Pirum you should keep this in mind and test your channel server with an existing/configured local pear installation.
</p>

<p>
  Finally, thanks to Fabien for this nitty-gritty tool, which will speed up the deployment process of PEAR packages, at least for me.
</p> 
            </div>
        </content>
        <dc:subject>fabien potencier</dc:subject>
<dc:subject>php</dc:subject>
<dc:subject>php_depend</dc:subject>
<dc:subject>pirum</dc:subject>

    </entry>
    <entry>
        <link href="http://www.manuel-pichler.de/archives/66-PHP_Depend-jumps-on-the-D-BUS.html" rel="alternate" title="PHP_Depend jumps on the D-BUS" />
        <author>
            <name>Manuel Pichler</name>
                    </author>
    
        <published>2009-11-18T17:47:00Z</published>
        <updated>2009-11-30T20:46:33Z</updated>
        <wfw:comment>http://www.manuel-pichler.de/wfwcomment.php?cid=66</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.manuel-pichler.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=66</wfw:commentRss>
    
            <category scheme="http://www.manuel-pichler.de/categories/3-php" label="php" term="php" />
            <category scheme="http://www.manuel-pichler.de/categories/11-php_depend" label="php_depend" term="php_depend" />
            <category scheme="http://www.manuel-pichler.de/categories/2-phpugdo" label="phpugdo" term="phpugdo" />
            <category scheme="http://www.manuel-pichler.de/categories/8-planet-php" label="planet-php" term="planet-php" />
    
        <id>http://www.manuel-pichler.de/archives/66-guid.html</id>
        <title type="html">PHP_Depend jumps on the D-BUS</title>
        <content type="xhtml" xml:base="http://www.manuel-pichler.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
  Today I had the chance to visit <a href="http://www.manuel-pichler.de/exit.php?url_id=2158&amp;entry_id=66" title="http://derickrethans.nl/"  onmouseover="window.status='http://derickrethans.nl/';return true;" onmouseout="window.status='';return true;">Derick's</a> IPC talk <a href="http://www.manuel-pichler.de/exit.php?url_id=2154&amp;entry_id=66" title="http://it-republik.de/konferenzen/ext_scripts/v2/php/sessions-popup.php?module=ipc09&amp;amp;id=11621"  onmouseover="window.status='http://it-republik.de/konferenzen/ext_scripts/v2/php/sessions-popup.php?module=ipc09&amp;amp;id=11621';return true;" onmouseout="window.status='';return true;">PHP on the D-BUS</a>. Beside the fact that it was an exciting talk, it inspired me to implement a small, but nice feature for <a href="http://www.manuel-pichler.de/exit.php?url_id=2155&amp;entry_id=66" title="http://pdepend.org"  onmouseover="window.status='http://pdepend.org';return true;" onmouseout="window.status='';return true;">PHP_Depend</a> using the <a href="http://www.manuel-pichler.de/exit.php?url_id=2156&amp;entry_id=66" title="http://pecl.php.net/package/DBus"  onmouseover="window.status='http://pecl.php.net/package/DBus';return true;" onmouseout="window.status='';return true;">pecl/dbus</a> extension.
</p>

<div class="serendipity_imageComment_center" style="width: 400px"><div class="serendipity_imageComment_img"><!-- s9ymdb:59 --><img class="serendipity_image_center" width="400" height="200" src="http://www.manuel-pichler.de/uploads/php_depend/pdepend-jumps-on-the-dbus.png" alt=""  /></div><div class="serendipity_imageComment_txt">PHP_Depend jumps on the D-BUS</div></div>

<p>
  Sometimes the parsing and analysis process of PHP_Depend can consume a lot of time to finish, so I always put the shell aside and do something different. Normally I take a look at the shell every few minutes to check if the process has finished, but it also happens that I totally forget that I have started a PHP_Depend process on my system. So I need something that says to me, <em>"Hey, mapi PHP_Depend has finished its job..."</em>, and here comes D-BUS in the game.
</p>
<p>
  With D-BUS it is really simple to send a message to a desktop notification panel, as it is available for desktop environments like Gnome or KDE. To use D-BUS in your php applications you must checkout the source code of <a href="http://www.manuel-pichler.de/exit.php?url_id=2156&amp;entry_id=66" title="http://pecl.php.net/package/DBus"  onmouseover="window.status='http://pecl.php.net/package/DBus';return true;" onmouseout="window.status='';return true;">pecl/dbus</a> from the <a href="http://www.manuel-pichler.de/exit.php?url_id=2159&amp;entry_id=66" title="http://svn.php.net/repository/pecl/dbus/trunk"  onmouseover="window.status='http://svn.php.net/repository/pecl/dbus/trunk';return true;" onmouseout="window.status='';return true;">svn repository</a> and compile it for your php installation.
</p>

<pre>
mapi@arwen ~ $ svn co http://svn.php.net/repository/pecl/dbus/trunk \
               pecl-dbus
mapi@arwen ~ $ cd pecl-dbus
mapi@arwen pecl-dbus $ phpize
mapi@arwen pecl-dbus $ ./configure
mapi@arwen pecl-dbus $ make
mapi@arwen pecl-dbus $ sudo make install
</pre>

<p>
That's it. Now you should see the <em>--notify-me</em> option when you open PHP_Depend's help screen.
</p>

<pre>
mapi@arwen ~ $ ~/pdepend/pdepend.php --help
PHP_Depend @package_version@ by Manuel Pichler

// ... snipp ...

  --debug                   Prints debugging information.
  --help                    Print this help text.
  --version                 Print the current version.
  --notify-me               Show a notification after analysis.
  -d key[=value]            Sets a php.ini value.
</pre>

<p>
  Now you can add this option to your normal PHP_Depend command and it will show a notification window with the number of analyzed files and the time the process took.
</p>

<pre>
mapi@arwen ~ $ ~/pdepend/pdepend.php --summary-xml=/tmp/summary.xml \
                                       --notify-me \
                                       ~/pdepend/PHP
</pre>

<p>
  For the moment this feature is only available through the <a href="http://www.manuel-pichler.de/exit.php?url_id=2157&amp;entry_id=66" title="http://svn.pdepend.org/branches/0.9.0"  onmouseover="window.status='http://svn.pdepend.org/branches/0.9.0';return true;" onmouseout="window.status='';return true;">0.9.0 branch</a> of PHP_Depend and not as a PEAR package.
</p> 
            </div>
        </content>
        <dc:subject>dbus</dc:subject>
<dc:subject>derick</dc:subject>
<dc:subject>fun</dc:subject>
<dc:subject>php_depend</dc:subject>

    </entry>

</feed>