瀏覽代碼

[php] fix null.nonExistent()

Alexander Kuzmenko 8 年之前
父節點
當前提交
b1bfdafacb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/generators/genphp.ml

+ 1 - 1
src/generators/genphp.ml

@@ -848,7 +848,7 @@ and gen_field_access ctx isvar e s =
 		gen_value ctx e;
 		spr ctx ")";
 		gen_member_access ctx isvar e s
-	| TCast (ec, _) when (match ec.eexpr with | TNew _ | TArrayDecl _ -> true | _ -> false) ->
+	| TCast (ec, _) when (match ec.eexpr with | TNew _ | TArrayDecl _ | TConst TNull -> true | _ -> false) ->
 		spr ctx "_hx_deref(";
 		ctx.is_call <- false;
 		gen_value ctx e;