Jelajahi Sumber

php : fixed field declaration for properties with getter and setter (issue 124)

Franco Ponticelli 15 tahun lalu
induk
melakukan
988cd42c69
2 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 1 0
      doc/CHANGES.txt
  2. 1 3
      genphp.ml

+ 1 - 0
doc/CHANGES.txt

@@ -39,6 +39,7 @@
 	php : haxe.Http now supports Https connections when OpenSSL extension is enabled (issue 143)
 	php : haxe.Http now supports Https connections when OpenSSL extension is enabled (issue 143)
 	php : fixed enum constructors sequence (issue 142)
 	php : fixed enum constructors sequence (issue 142)
 	php : added error message when using 2 fields with different cases in the same class/enum
 	php : added error message when using 2 fields with different cases in the same class/enum
+	php : fixed field declaration for properties with getter and setter (issue 124)
 	
 	
 2010-01-09: 2.05
 2010-01-09: 2.05
 	js : added js.Scroll
 	js : added js.Scroll

+ 1 - 3
genphp.ml

@@ -1669,9 +1669,7 @@ let generate_field ctx static f =
 				if not (is_method_defined ctx m2 static) then (
 				if not (is_method_defined ctx m2 static) then (
 					generate_self_method ctx rights m2 static true;
 					generate_self_method ctx rights m2 static true;
 					print ctx "%s $%s" rights (s_ident m2));
 					print ctx "%s $%s" rights (s_ident m2));
-				if (is_method_defined ctx m1 static) && (is_method_defined ctx m2 static) then
-					spr ctx "//";
-				true
+				false
 			| CallAccess m, _ ->
 			| CallAccess m, _ ->
 				if not (is_method_defined ctx m static) then generate_self_method ctx rights m static false;
 				if not (is_method_defined ctx m static) then generate_self_method ctx rights m static false;
 				print ctx "%s $%s" rights (s_ident f.cf_name);
 				print ctx "%s $%s" rights (s_ident f.cf_name);