Explorar o código

- fixed issue with PHP reserved word used in callbacks

Franco Ponticelli %!s(int64=15) %!d(string=hai) anos
pai
achega
789ad1e78f
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      doc/CHANGES.txt
  2. 1 1
      genphp.ml

+ 2 - 0
doc/CHANGES.txt

@@ -22,6 +22,8 @@
 	spod : moved Manager.addQuote to Connection.addValue
 	flash9 : removed .iterator() from Vector (not implementable)
 	all : fixed haxe.rtti.Generic on interfaces
+	php : fixed issue with Reflect.callMethod
+	php : fixed issue with PHP reserved word used in callbacks
 
 2009-07-26: 2.04
 	flash9 : fixed get_full_path error with -D fdb

+ 1 - 1
genphp.ml

@@ -1195,7 +1195,7 @@ and gen_expr ctx e =
 				gen_field_access ctx true e1 s;
 				spr ctx ": array(";
 				ob e1.eexpr;
-				print ctx ", %s\"%s%s\"))" p s p;
+				print ctx ", %s\"%s%s\"))" p (s_ident s) p;
 				
 			end)
 		| TMono _ ->