瀏覽代碼

php: fixed bug in getClassFields returning __properties__

Franco Ponticelli 12 年之前
父節點
當前提交
e452563b7c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/php/_std/Type.hx

+ 1 - 1
std/php/_std/Type.hx

@@ -176,7 +176,7 @@ enum ValueType {
 			if($m->isStatic()) $r[] = $m->getName();
 		$ps = $rfl->getProperties();
 		while(list(, $p) = each($ps))
-			if($p->isStatic()) $r[] = $p->getName();
+			if($p->isStatic() && ($name = $p->getName()) !== '__properties__') $r[] = $name;
 		");
 		return untyped __php__("new _hx_array(array_unique($r))");
 	}