瀏覽代碼

[php] we now have real empty blocks, so generate them (see 42be1b96bf7353e3194dc065cd1361a31ee4bdb1)

Dan Korostelev 11 年之前
父節點
當前提交
534fd95ef8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genphp.ml

+ 1 - 1
genphp.ml

@@ -1272,7 +1272,7 @@ and gen_expr ctx e =
 	| TContinue ->
 		if ctx.in_loop then spr ctx "continue" else print ctx "continue %d" ctx.nested_loops
 	| TBlock [] ->
-		spr ctx ""
+		spr ctx "{}"
 	| TBlock el ->
 		let old_l = ctx.inv_locals in
 		let b = save_locals ctx in