Browse Source

[php] make sure to unset `constructor_block` (closes #4723)

Simon Krajewski 9 years ago
parent
commit
f95d3402ba
1 changed files with 1 additions and 0 deletions
  1. 1 0
      genphp.ml

+ 1 - 0
genphp.ml

@@ -2044,6 +2044,7 @@ let generate_class ctx c =
 		} in
 		} in
 		ctx.constructor_block <- true;
 		ctx.constructor_block <- true;
 		generate_field ctx false f;
 		generate_field ctx false f;
+		ctx.constructor_block <- false;
 	);
 	);
 
 
 	List.iter (generate_field ctx false) c.cl_ordered_fields;
 	List.iter (generate_field ctx false) c.cl_ordered_fields;