Browse Source

php : fixed comparison issues between strings (issue 132)

Franco Ponticelli 15 years ago
parent
commit
76e4ab9881
2 changed files with 1 additions and 8 deletions
  1. 1 1
      doc/CHANGES.txt
  2. 0 7
      genphp.ml

+ 1 - 1
doc/CHANGES.txt

@@ -40,7 +40,7 @@
 	php : fixed enum constructors sequence (issue 142)
 	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)
-	
+	php : fixed comparison issues between strings (issue 132)
 2010-01-09: 2.05
 	js : added js.Scroll
 	js : package names are now checked at runtime to avoid clashes with existing libs

+ 0 - 7
genphp.ml

@@ -1081,13 +1081,6 @@ and gen_expr ctx e =
 				spr ctx ", ";
 				gen_field_op ctx e2;
 				spr ctx ")";
-			end else if
-				   is_string_expr e1
-				&& is_string_expr e2
-			then begin
-				gen_field_op ctx e1;
-				spr ctx s_op;
-				gen_field_op ctx e2;
 			end else if
 				   se1 == se2
 				|| (match e1.eexpr with | TConst _ | TLocal _ | TArray _  | TNew _ -> true | _ -> false)