Browse Source

- php : fixed issue #17

Franco Ponticelli 15 years ago
parent
commit
00f43e3e4f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      genphp.ml

+ 2 - 1
genphp.ml

@@ -990,7 +990,8 @@ and gen_expr ctx e =
 		| _ -> print ctx "%s::%s$%s" (s_path ctx en.e_path en.e_extern e.epos) (escphp ctx.quotes) (s_ident s))
 	| TArray (e1,e2) ->
 		(match e1.eexpr with
-		| TCall _ ->
+		| TCall _
+		| TArrayDecl _ ->
 			spr ctx "_hx_array_get(";
 			gen_value ctx e1;
 			spr ctx ", ";