Explorar o código

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

Franco Ponticelli %!s(int64=14) %!d(string=hai) anos
pai
achega
82375dc92c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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(";