Browse Source

php : fix for bug introduced with parenthesis wrapping of (function(){})()

Franco Ponticelli 14 years ago
parent
commit
82375dc92c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      genphp.ml

+ 2 - 0
genphp.ml

@@ -521,6 +521,7 @@ and gen_call ctx e el =
 	| TLocal _, []
 	| TFunction _, []
 	| TCall _, []
+	| TParenthesis _, []
 	| TBlock _, [] ->
 		ctx.is_call <- true;
 		spr ctx "call_user_func(";
@@ -530,6 +531,7 @@ and gen_call ctx e el =
 	| TLocal _, el
 	| TFunction _, el
 	| TCall _, el
+	| TParenthesis _, el
 	| TBlock _, el ->
 		ctx.is_call <- true;
 		spr ctx "call_user_func_array(";