Skip to content

Commit

Permalink
Fixed #24975295: Fatal: Maximum function nesting level reached
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelpichler committed Feb 16, 2012
1 parent fd87292 commit f6550df
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/php/PHP/PMD.php
Expand Up @@ -175,10 +175,10 @@ public function setIgnorePattern(array $ignorePatterns)
* path. It will apply rules defined in the comma-separated <b>$ruleSets</b>
* argument. The result will be passed to all given renderer instances.
*
* @param string $inputPath File or directory
* @param string $ruleSets Rule-sets to apply
* @param array(PHP_PMD_AbstractRenderer) $renderers Report renderers
* @param PHP_PMD_RuleSetFactory $ruleSetFactory The factory to use
* @param string $inputPath File or directory
* @param string $ruleSets Rule-sets to apply
* @param PHP_PMD_AbstractRenderer[] $renderers Report renderers
* @param PHP_PMD_RuleSetFactory $ruleSetFactory The factory to use
*
* @return void
*/
Expand Down
3 changes: 3 additions & 0 deletions src/main/php/PHP/PMD/Parser.php
Expand Up @@ -176,6 +176,9 @@ public function log(PHP_Depend_Metrics_AnalyzerI $analyzer)
*/
public function close()
{
// Set max nesting level, because we may get really deep data structures
ini_set('xdebug.max_nesting_level', 8192);

foreach ($this->_code as $node) {
$node->accept($this);
}
Expand Down
9 changes: 9 additions & 0 deletions src/site/docx/changes.xml
Expand Up @@ -9,6 +9,15 @@
</properties>

<body>
<release version="1.3.1"
date="2012/02/16"
description="">

<action date="" dev="mapi" issue="24975295" system="pivotaltracker" due-to="Akram" type="fix">
Fatal: Maximum function nesting level reached in ASTNode.php:425
</action>
</release>

<release version="1.3.0"
date="2012/02/04"
description="Version 1.3.0 now depends on PHP_Depend 1.0.0 which
Expand Down

0 comments on commit f6550df

Please sign in to comment.