Ver Fonte

fixed issue in TestLocals.testParallelCapture

Franco Ponticelli há 14 anos atrás
pai
commit
c84cf66dba
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      genphp.ml

+ 4 - 0
genphp.ml

@@ -1180,8 +1180,12 @@ and gen_expr ctx e =
 		in
 		List.iter build el;
 
+		if ctx.in_loop then begin
+			unset_locals ctx old_l;
+		end;
 		bend();
 		newline ctx;
+		
 		cb();
 		print ctx "}";
 		b();