소스 검색

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

Franco Ponticelli 14 년 전
부모
커밋
82375dc92c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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(";