Skip to content

Commit

Permalink
only try if-conditions on resources actually defined by this extension
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/CodeGen_PECL/trunk@234479 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Hartmut Holzgraefe committed Apr 25, 2007
1 parent 949b671 commit 8146562
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions PECL/Element/Function.php
Expand Up @@ -974,6 +974,8 @@ function localVariables($extension)
} else {
$code .= " $payload * return_res;\n";
}
} else {
$code .= " void * return_res;\n";
}
} else {
$code .= " void * return_res;\n";
Expand Down Expand Up @@ -1590,7 +1592,9 @@ function ifConditionStart($extension = false)
} else {
continue;
}
$code.= $obj->ifConditionStart();
if (is_object($obj)) {
$code.= $obj->ifConditionStart();
}
}
}

Expand All @@ -1617,7 +1621,9 @@ function ifConditionEnd($extension = false)
} else {
continue;
}
$code.= $obj->ifConditionEnd();
if (is_object($obj)) {
$code.= $obj->ifConditionEnd();
}
}
}

Expand Down

0 comments on commit 8146562

Please sign in to comment.