Browse Source

- fixed issue 191

Franco Ponticelli 14 years ago
parent
commit
6c2878fc20
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genphp.ml

+ 1 - 1
genphp.ml

@@ -1617,7 +1617,7 @@ let generate_field ctx static f =
 		if ctx.curclass.cl_interface then
 		if ctx.curclass.cl_interface then
 			match follow f.cf_type with
 			match follow f.cf_type with
 			| TFun (args,r) ->
 			| TFun (args,r) ->
-				print ctx "function %s(" f.cf_name;
+				print ctx "function %s(" (s_ident f.cf_name);
 				concat ctx ", " (fun (arg,o,t) ->
 				concat ctx ", " (fun (arg,o,t) ->
 					s_funarg ctx arg t p o;
 					s_funarg ctx arg t p o;
 				) args;
 				) args;