瀏覽代碼

fixed issue in TestLocals.testParallelCapture

Franco Ponticelli 14 年之前
父節點
當前提交
c84cf66dba
共有 1 個文件被更改,包括 4 次插入0 次删除
  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();