Zend Studio中的phpDocumentor忽略使用PHP 5语法声明的属性


phpDocumentor in Zend Studio ignores properties declared using PHP 5 syntax?

我在Mac OS X 10.6上使用香草Zend Studio 8,并进行了一个简单的测试项目。

当我使用phpDocumentor(使用默认设置)生成文档时,生成的文档不包括任何类属性-即使我为它们编写了有效的docblock。

的例子:

/**
 * The number of characters of the text.
 * It is used to prevent the program from operating beyond the end of the text.
 * @var int
 */
public $length;

上述属性在生成的文档中没有出现。

但是,如果我将public更改为var(即将我的代码从PHP 4更改为PHP 5语法),那么属性就会出现在文档中。

有什么想法是导致这个问题或如何解决它?

编辑:我刚刚从Zend Studio安装中单独安装了phpDocumentor,并试图以这种方式生成文档-它在Zend Studio之外完美地工作,所有属性都显示出来,以及突出显示的源代码。

所以这似乎只是Zend Studio本身的问题,它的phpDocumentor的集成副本,或者它的PHP集成副本。

我相信PHPDocumentor不再受支持,我也在寻找替代方案。如果你在mac上,试着使用苹果开源氧,它看起来真的很酷,我相信它是OSX的默认安装http://developer.apple.com/tools/creatingdocsetswithdoxygen.html