Skip to content
Browse files

only try if-conditions on resources actually defined by this extension

git-svn-id: http://svn.php.net/repository/pear/packages/CodeGen_PECL/trunk@234479 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 949b671 commit 8146562d1fe3fc8361e8b0c005bc89f6ea5fd3a3 Hartmut Holzgraefe committed
Showing with 8 additions and 2 deletions.
  1. +8 −2 PECL/Element/Function.php
View
10 PECL/Element/Function.php
@@ -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";
@@ -1590,7 +1592,9 @@ function ifConditionStart($extension = false)
} else {
continue;
}
- $code.= $obj->ifConditionStart();
+ if (is_object($obj)) {
+ $code.= $obj->ifConditionStart();
+ }
}
}
@@ -1617,7 +1621,9 @@ function ifConditionEnd($extension = false)
} else {
continue;
}
- $code.= $obj->ifConditionEnd();
+ if (is_object($obj)) {
+ $code.= $obj->ifConditionEnd();
+ }
}
}

0 comments on commit 8146562

Please sign in to comment.
Something went wrong with that request. Please try again.